|
Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
Viewport configuration settings. More...
#include <project_config.h>
Public Member Functions | |
| bool | load (const tinyxml2::XMLElement *root) |
Public Attributes | |
| int | width = 640 |
| int | height = 320 |
| float | scale = 1.0f |
| ViewportMode | mode = ViewportMode::VIEWPORT |
| AspectRatio | aspect_ratio = AspectRatio::KEEP |
Viewport configuration settings.
| bool Viewport::load | ( | const tinyxml2::XMLElement * | root | ) |
| AspectRatio Viewport::aspect_ratio = AspectRatio::KEEP |
| int Viewport::height = 320 |
| ViewportMode Viewport::mode = ViewportMode::VIEWPORT |
| float Viewport::scale = 1.0f |
| int Viewport::width = 640 |