100 bool load(
const tinyxml2::XMLElement* root);
110 bool load(
const tinyxml2::XMLElement* root);
118 const char*
name =
"Ember Engine - Window";
128 bool load(
const tinyxml2::XMLElement* root);
140 bool load(
const tinyxml2::XMLElement* root);
151 bool load(
const tinyxml2::XMLElement* root);
174 bool load(
const tinyxml2::XMLElement* root);
222 bool _is_vsync_enabled =
true;
224 tinyxml2::XMLDocument _doc = {};
ViewportMode
Viewport rendering mode.
Definition: project_config.h:76
Orientation
Device orientation options.
Definition: project_config.h:50
AspectRatio
How the viewport handles aspect ratio.
Definition: project_config.h:63
Backend
Supported rendering backends for the engine.
Definition: project_config.h:13
@ LANDSCAPE_RIGHT
Landscape mode with home button on the right.
@ PORTRAIT
Landscape mode with home button on the left.
@ PORTRAIT_UPSIDE_DOWN
Portrait mode with home button at the bottom.
@ KEEP
No aspect ratio handling.
@ EXPAND
Maintain aspect ratio, adding black bars if necessary.
@ GL_COMPATIBILITY
OpenGL-based compatibility profile.
@ METAL
Metal backend (macOS + iOS).
@ VK_FORWARD
Vulkan-based high-performance profile.
@ DIRECTX12
DirectX 12 backend (Windows + Xbox).
@ AUTO
Automatically choose the best backend for the platform.
TextureFiltering
Texture filtering modes.
Definition: project_config.h:83
@ LINEAR
Smooth filtering.
@ NEAREST
Pixelated filtering.
WindowMode
Definition: project_config.h:156
@ MAXIMIZED
Windowed mode.
@ MINIMIZED
Maximized mode.
@ FULLSCREEN
Minimized mode.
Application metadata and window settings.
Definition: project_config.h:117
const char * name
Definition: project_config.h:118
const char * version
Definition: project_config.h:119
const char * description
Definition: project_config.h:122
int max_fps
Definition: project_config.h:123
bool is_fullscreen
Definition: project_config.h:125
bool load(const tinyxml2::XMLElement *root)
Definition: project_config.cpp:86
const char * package_name
Definition: project_config.h:120
bool is_resizable
Definition: project_config.h:126
const char * icon_path
Definition: project_config.h:121
Engine configuration loaded from project.xml.
Definition: project_config.h:181
bool is_vsync() const
Definition: project_config.cpp:364
RendererDevice & get_renderer_device()
Definition: project_config.cpp:340
Orientation orientation
Definition: project_config.h:185
Environment & get_environment()
Definition: project_config.cpp:352
Viewport & get_viewport()
Definition: project_config.cpp:356
void set_vsync(bool enabled)
Definition: project_config.cpp:368
Application & get_application()
Definition: project_config.cpp:348
const char * get_orientation_str() const
Definition: project_config.cpp:154
Window & get_window()
Definition: project_config.cpp:360
TextureFiltering texture_filtering
Definition: project_config.h:187
bool is_debug
Definition: project_config.h:183
Performance & get_performance()
Definition: project_config.cpp:344
bool load()
Definition: project_config.cpp:272
Environment settings such as clear color.
Definition: project_config.h:107
glm::vec4 clear_color
Definition: project_config.h:108
bool load(const tinyxml2::XMLElement *root)
Definition: project_config.cpp:54
Renderer device settings.
Definition: project_config.h:147
bool load(const tinyxml2::XMLElement *root)
Definition: project_config.cpp:202
TextureFiltering texture_filtering
Definition: project_config.h:149
const char * get_backend_str() const
Definition: project_config.cpp:245
Backend backend
Definition: project_config.h:148
Viewport configuration settings.
Definition: project_config.h:92
int width
Definition: project_config.h:93
AspectRatio aspect_ratio
Definition: project_config.h:98
bool load(const tinyxml2::XMLElement *root)
Definition: project_config.cpp:6
float scale
Definition: project_config.h:95
int height
Definition: project_config.h:94
ViewportMode mode
Definition: project_config.h:97
Window configuration settings.
Definition: project_config.h:166
float dpi_scale
Definition: project_config.h:172
bool load(const tinyxml2::XMLElement *root)
Definition: project_config.cpp:265
WindowMode window_mode
Definition: project_config.h:170
int height
Definition: project_config.h:168
int width
Definition: project_config.h:167