libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Configuration options for a Window. More...
#include <donut/graphics/Window.hpp>
Public Attributes | |
const char * | title = "Application" |
Non-owning pointer to a null-terminated UTF-8 string of the displayed title of the window. More... | |
ivec2 | size {800, 600} |
The desired size of the window, in screen coordinates (typically pixels). More... | |
bool | resizable = true |
Whether the user should be allowed to resize the window or not. More... | |
bool | fullscreen = false |
Whether the window should start in fullscreen mode or not. More... | |
bool | vSync = false |
Whether the window should use vertical synchronization or not. More... | |
int | msaaLevel = 0 |
Number of samples used for multisample anti-aliasing (MSAA) when rendering a pixel to the window via its Framebuffer. More... | |
Configuration options for a Window.
const char* donut::graphics::WindowOptions::title = "Application" |
Non-owning pointer to a null-terminated UTF-8 string of the displayed title of the window.
ivec2 donut::graphics::WindowOptions::size {800, 600} |
The desired size of the window, in screen coordinates (typically pixels).
The x component represents the width, and the y component represents the height.
bool donut::graphics::WindowOptions::resizable = true |
Whether the user should be allowed to resize the window or not.
bool donut::graphics::WindowOptions::fullscreen = false |
Whether the window should start in fullscreen mode or not.
bool donut::graphics::WindowOptions::vSync = false |
Whether the window should use vertical synchronization or not.
VSync introduces a pause each time an application frame is finished rendering that causes the application to wait for the previously displayed frame to finish being drawn to the screen. This eliminates any tearing artifacts that may otherwise occur due to swapping the frame buffers in the middle of a screen refresh, at the cost of effectively limiting the application's frame rate to the screen's refresh rate.
int donut::graphics::WindowOptions::msaaLevel = 0 |
Number of samples used for multisample anti-aliasing (MSAA) when rendering a pixel to the window via its Framebuffer.
This can be used to mitigate aliasing artifacts on the edges of 3D objects, at the cost of some performance.
If set to 0 or lower, MSAA will not be used.