81 bool load(
const tinyxml2::XMLElement* root);
88 bool load(
const tinyxml2::XMLElement* root);
92 const char*
name =
"Window - Ember Engine";
103 bool load(
const tinyxml2::XMLElement* root);
115 bool load(
const tinyxml2::XMLElement* root);
129 glm::ivec2
size = glm::ivec2(1280,720);
135 bool load (
const tinyxml2::XMLElement* root);
178 bool _is_vsync_enabled =
true;
180 tinyxml2::XMLDocument _doc = {};
TextureFiltering
Texture filtering modes.
Definition: engine_config.h:67
@ LINEAR
Smooth filtering.
@ NEAREST
Pixelated filtering.
ViewportMode
Definition: engine_config.h:57
WindowMode
Definition: engine_config.h:121
Orientation
Definition: engine_config.h:44
AspectRatio
Definition: engine_config.h:51
Backend
Supported rendering backends for the engine.
Definition: engine_config.h:11
@ 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.
Definition: engine_config.h:91
bool is_debug
Definition: engine_config.h:101
const char * name
Definition: engine_config.h:92
const char * version
Definition: engine_config.h:93
const char * description
Definition: engine_config.h:96
int max_fps
Definition: engine_config.h:97
bool is_fullscreen
Definition: engine_config.h:99
bool load(const tinyxml2::XMLElement *root)
Definition: engine_config.cpp:83
const char * package_name
Definition: engine_config.h:94
bool is_resizable
Definition: engine_config.h:100
const char * icon_path
Definition: engine_config.h:95
Definition: engine_config.h:138
bool is_vsync() const
Definition: engine_config.cpp:316
Orientation orientation
Definition: engine_config.h:140
RendererDevice get_renderer_device() const
Definition: engine_config.cpp:292
void set_vsync(bool enabled)
Definition: engine_config.cpp:320
const char * get_orientation_str() const
Definition: engine_config.cpp:148
Threading get_threading() const
Definition: engine_config.cpp:296
Application get_application() const
Definition: engine_config.cpp:300
TextureFiltering texture_filtering
Definition: engine_config.h:142
Environment get_environment() const
Definition: engine_config.cpp:304
Viewport get_viewport() const
Definition: engine_config.cpp:308
Window get_window() const
Definition: engine_config.cpp:312
bool load()
Definition: engine_config.cpp:229
Definition: engine_config.h:85
glm::vec4 clear_color
Definition: engine_config.h:86
bool load(const tinyxml2::XMLElement *root)
Definition: engine_config.cpp:54
Definition: engine_config.h:111
bool load(const tinyxml2::XMLElement *root)
Definition: engine_config.cpp:163
TextureFiltering texture_filtering
Definition: engine_config.h:113
const char * get_backend_str() const
Definition: engine_config.cpp:206
Backend backend
Definition: engine_config.h:112
Definition: engine_config.h:106
int thread_count
Definition: engine_config.h:108
bool is_multithreaded
Definition: engine_config.h:107
Definition: engine_config.h:73
int width
Definition: engine_config.h:74
AspectRatio aspect_ratio
Definition: engine_config.h:79
bool load(const tinyxml2::XMLElement *root)
Definition: engine_config.cpp:6
float scale
Definition: engine_config.h:76
int height
Definition: engine_config.h:75
ViewportMode mode
Definition: engine_config.h:78
Definition: engine_config.h:128
float dpi_scale
Definition: engine_config.h:133
bool load(const tinyxml2::XMLElement *root)
Definition: engine_config.cpp:224
WindowMode window_mode
Definition: engine_config.h:131
glm::ivec2 size
Definition: engine_config.h:129