![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Helper class to encapsulate our global settings we want to quickly access across app. More...
#include <Settings.hpp>
Static Public Member Functions | |
static auto | set_config_to_default () -> void |
Restore all config settings to default. | |
static auto | set_settings_from_config () -> void |
Set all our settings using the provided config file. | |
static auto | window_width () noexcept -> int |
Window creation width. | |
static auto | window_height () noexcept -> int |
Window creation height. | |
static auto | window_icon () noexcept -> const std::string & |
Window icon file in vfs. | |
static auto | fullscreen () noexcept -> bool |
Is window started fullscreen. | |
static auto | maximized () noexcept -> bool |
Is window started maximized? | |
static auto | vsync () noexcept -> bool |
Vsync control. | |
static auto | window_resizable () noexcept -> bool |
Is the window resizable. | |
static auto | window_border () noexcept -> bool |
Controls if a window has a border around it (including titlebar). | |
static auto | mouse_grabbed () noexcept -> bool |
Is the cursor grabbed. | |
static auto | cursor_show () noexcept -> bool |
Is the mouse cursor visible or not. | |
static auto | cursor_icon () noexcept -> const std::string & |
Cursor texture file in vfs. | |
static auto | cursor_hotspot () noexcept -> const glm::ivec2 & |
Cursor selector point (hotspot). | |
static auto | audio_freq () noexcept -> int |
Set audio frequency to use with SDL. | |
static auto | ansiotrophy () noexcept -> int |
Ansiotropic filtering level. | |
static auto | mipmap () noexcept -> bool |
Mipmapping. | |
static auto | texture_filter () noexcept -> GLTextureFilter |
Texture filtering type. | |
static auto | title () noexcept -> const std::string & |
Game title. | |
static auto | version () noexcept -> const std::string & |
Game semver. | |
static auto | identifier () noexcept -> const std::string & |
Game identifier i.e. com.galaxy.app. | |
static auto | creator () noexcept -> const std::string & |
Owner. | |
static auto | copyright () noexcept -> const std::string & |
Copyright message. | |
static auto | website () noexcept -> const std::string & |
Website URL. | |
static auto | log_dir () noexcept -> const std::string & |
Current root directory of application, unless it has been changed. | |
static auto | root_dir () noexcept -> std::filesystem::path |
Current root directory of application, unless it has been changed. | |
static auto | assets_dir () noexcept -> std::filesystem::path |
Main data directory. | |
static auto | editor_dir () noexcept -> std::filesystem::path |
Directory for editor specific stuff. | |
static auto | asset_pack () noexcept -> const std::string & |
Name of packed assets file. | |
static auto | use_loose_assets () noexcept -> bool |
Should asset data be read from pack or assets dir. | |
static auto | assets_dir_music () noexcept -> const std::string & |
Music asset location. | |
static auto | assets_dir_sfx () noexcept -> const std::string & |
SFX asset location. | |
static auto | assets_dir_voice () noexcept -> const std::string & |
Voice asset location. | |
static auto | assets_dir_font () noexcept -> const std::string & |
Font asset location. | |
static auto | assets_dir_script () noexcept -> const std::string & |
Scripts asset location. | |
static auto | assets_dir_shaders () noexcept -> const std::string & |
Shaders asset location. | |
static auto | assets_dir_animation () noexcept -> const std::string & |
Animation data location. | |
static auto | assets_dir_texture () noexcept -> const std::string & |
Textures asset location. | |
static auto | assets_dir_prefabs () noexcept -> const std::string & |
Prefab asset location. | |
static auto | assets_dir_maps () noexcept -> const std::string & |
Maps asset location. | |
static auto | assets_dir_video () noexcept -> const std::string & |
Video asset location. | |
static auto | assets_dir_ui () noexcept -> const std::string & |
UI asset location. | |
Static Private Attributes | |
static int | s_window_width |
static int | s_window_height |
static std::string | s_window_icon |
static bool | s_fullscreen |
static bool | s_maximized |
static bool | s_vsync |
static bool | s_resizable |
static bool | s_border |
static bool | s_mouse_grabbed |
static bool | s_cursor_show |
static std::string | s_cursor_icon |
static glm::ivec2 | s_cursor_hotspot |
static int | s_audio_freq |
static int | s_ansio |
static bool | s_mipmap |
static GLTextureFilter | s_filtering |
static std::string | s_title |
static std::string | s_version |
static std::string | s_identifier |
static std::string | s_creator |
static std::string | s_copyright |
static std::string | s_website |
static std::filesystem::path | s_assets_dir |
static std::filesystem::path | s_editor_dir |
static std::string | s_asset_pack |
static bool | s_use_loose_assets |
static std::string | s_assets_music |
static std::string | s_assets_sfx |
static std::string | s_assets_voice |
static std::string | s_assets_font |
static std::string | s_assets_script |
static std::string | s_assets_shaders |
static std::string | s_assets_animation |
static std::string | s_assets_texture |
static std::string | s_assets_prefabs |
static std::string | s_assets_maps |
static std::string | s_assets_video |
static std::string | s_assets_ui |
Helper class to encapsulate our global settings we want to quickly access across app.
Definition at line 22 of file Settings.hpp.
|
static |
Restore all config settings to default.
Definition at line 23 of file Settings.cpp.
|
static |
Set all our settings using the provided config file.
Definition at line 75 of file Settings.cpp.
|
staticnodiscardnoexcept |
Window creation width.
Definition at line 127 of file Settings.cpp.
|
staticnodiscardnoexcept |
Window creation height.
Definition at line 132 of file Settings.cpp.
|
staticnodiscardnoexcept |
Window icon file in vfs.
Definition at line 137 of file Settings.cpp.
|
staticnodiscardnoexcept |
Is window started fullscreen.
Definition at line 142 of file Settings.cpp.
|
staticnodiscardnoexcept |
Is window started maximized?
Fullscreen takes priority.
Definition at line 147 of file Settings.cpp.
|
staticnodiscardnoexcept |
Vsync control.
Definition at line 152 of file Settings.cpp.
|
staticnodiscardnoexcept |
Is the window resizable.
Definition at line 157 of file Settings.cpp.
|
staticnodiscardnoexcept |
Controls if a window has a border around it (including titlebar).
Definition at line 162 of file Settings.cpp.
|
staticnodiscardnoexcept |
Is the cursor grabbed.
Definition at line 167 of file Settings.cpp.
|
staticnodiscardnoexcept |
Is the mouse cursor visible or not.
Definition at line 172 of file Settings.cpp.
|
staticnodiscardnoexcept |
Cursor texture file in vfs.
Definition at line 177 of file Settings.cpp.
|
staticnodiscardnoexcept |
Cursor selector point (hotspot).
Definition at line 182 of file Settings.cpp.
|
staticnodiscardnoexcept |
Set audio frequency to use with SDL.
Definition at line 187 of file Settings.cpp.
|
staticnodiscardnoexcept |
Ansiotropic filtering level.
Definition at line 192 of file Settings.cpp.
|
staticnodiscardnoexcept |
Mipmapping.
Definition at line 197 of file Settings.cpp.
|
staticnodiscardnoexcept |
Texture filtering type.
Definition at line 202 of file Settings.cpp.
|
staticnodiscardnoexcept |
Game title.
Definition at line 207 of file Settings.cpp.
|
staticnodiscardnoexcept |
Game semver.
Definition at line 212 of file Settings.cpp.
|
staticnodiscardnoexcept |
Game identifier i.e. com.galaxy.app.
Definition at line 217 of file Settings.cpp.
|
staticnodiscardnoexcept |
Owner.
Definition at line 222 of file Settings.cpp.
|
staticnodiscardnoexcept |
Copyright message.
Definition at line 227 of file Settings.cpp.
|
staticnodiscardnoexcept |
Website URL.
Definition at line 232 of file Settings.cpp.
|
staticnodiscardnoexcept |
Current root directory of application, unless it has been changed.
Definition at line 237 of file Settings.cpp.
|
staticnodiscardnoexcept |
Current root directory of application, unless it has been changed.
Definition at line 243 of file Settings.cpp.
|
staticnodiscardnoexcept |
Main data directory.
Definition at line 248 of file Settings.cpp.
|
staticnodiscardnoexcept |
Directory for editor specific stuff.
Definition at line 253 of file Settings.cpp.
|
staticnodiscardnoexcept |
Name of packed assets file.
Definition at line 258 of file Settings.cpp.
|
staticnodiscardnoexcept |
Should asset data be read from pack or assets dir.
Definition at line 263 of file Settings.cpp.
|
staticnodiscardnoexcept |
Music asset location.
Definition at line 268 of file Settings.cpp.
|
staticnodiscardnoexcept |
SFX asset location.
Definition at line 273 of file Settings.cpp.
|
staticnodiscardnoexcept |
Voice asset location.
Definition at line 278 of file Settings.cpp.
|
staticnodiscardnoexcept |
Font asset location.
Definition at line 283 of file Settings.cpp.
|
staticnodiscardnoexcept |
Scripts asset location.
Definition at line 288 of file Settings.cpp.
|
staticnodiscardnoexcept |
Shaders asset location.
Definition at line 293 of file Settings.cpp.
|
staticnodiscardnoexcept |
Animation data location.
Definition at line 298 of file Settings.cpp.
|
staticnodiscardnoexcept |
Textures asset location.
Definition at line 303 of file Settings.cpp.
|
staticnodiscardnoexcept |
Prefab asset location.
Definition at line 308 of file Settings.cpp.
|
staticnodiscardnoexcept |
Maps asset location.
Definition at line 313 of file Settings.cpp.
|
staticnodiscardnoexcept |
Video asset location.
Definition at line 318 of file Settings.cpp.
|
staticnodiscardnoexcept |
UI asset location.
Definition at line 323 of file Settings.cpp.
|
inlinestaticprivate |
Definition at line 358 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 359 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 360 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 361 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 362 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 363 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 364 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 365 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 367 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 368 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 369 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 370 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 372 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 374 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 375 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 376 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 378 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 379 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 380 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 381 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 382 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 383 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 385 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 386 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 387 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 388 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 389 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 390 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 391 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 392 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 393 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 394 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 395 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 396 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 397 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 398 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 399 of file Settings.hpp.
|
inlinestaticprivate |
Definition at line 400 of file Settings.hpp.