Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
Viewport Struct Reference

#include <engine_config.h>

Public Member Functions

bool load (const tinyxml2::XMLElement *root)
 

Public Attributes

int width = 320
 
int height = 180
 
float scale = 1.0f
 
ViewportMode mode = ViewportMode::VIEWPORT
 
AspectRatio aspect_ratio = AspectRatio::KEEP
 

Member Function Documentation

◆ load()

bool Viewport::load ( const tinyxml2::XMLElement *  root)

Member Data Documentation

◆ aspect_ratio

AspectRatio Viewport::aspect_ratio = AspectRatio::KEEP

◆ height

int Viewport::height = 180

◆ mode

◆ scale

float Viewport::scale = 1.0f

◆ width

int Viewport::width = 320

The documentation for this struct was generated from the following files: