A descriptor, used when creating a context along with its window.
More...
|
unsigned int | _width |
| The width of the context, in pixels. Defaults to 1.
|
|
unsigned int | _height |
| The height of the context, in pixels. Defauls to 1.
|
|
union { |
nkWinUi::GraphicsWindow * _window |
| For non off-screen context creation, an already existing window can be specified here. Defaults to nullptr, triggering an automatic window creation.
|
|
Texture * _texture |
| For off-screen context creation, an already existing texture to work on. Defaults to nullptr, triggering an automatic texture creation.
|
|
}; | |
|
bool | _offscreenContext |
| If the context should be used for offscreen rendering (no window created, only works with texture). Defaults to false.
|
|
bool | _vsync |
| If the context should be using vsync (true) or not (false). Defaults to false.
|
|
A descriptor, used when creating a context along with its window.
See RenderContextManager::createRenderContext() for more information.
◆ RenderContextDescriptor() [1/4]
nkGraphics::RenderContextDescriptor::RenderContextDescriptor |
( |
| ) |
|
|
noexcept |
◆ RenderContextDescriptor() [2/4]
nkGraphics::RenderContextDescriptor::RenderContextDescriptor |
( |
nkWinUi::Window * |
window | ) |
|
|
noexcept |
On window constructor.
- Parameters
-
window | The window the context described should render to. |
◆ RenderContextDescriptor() [3/4]
On texture constructor.
- Parameters
-
texture | The texture the context described should render to. |
◆ RenderContextDescriptor() [4/4]
nkGraphics::RenderContextDescriptor::RenderContextDescriptor |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
bool |
forOffscreen, |
|
|
bool |
vsync = false |
|
) |
| |
|
noexcept |
Automatic constructor.
- Parameters
-
width | The width of the context described, in pixels. |
height | The height of the context described, in pixels. |
forOffscreen | Whether the context described should be off-screen (true) or not (false). |
vsync | Whether the context described should use vsync (true) or not (false). |
The documentation for this class was generated from the following file: