ASGE
3.2.0
Simple Game Framework in GL
|
#include <GameSettings.hpp>
Public Types | |
enum class | WindowMode { EXCLUSIVE_FULLSCREEN = 0 , WINDOWED = 1 , BORDERLESS_WINDOWED = 2 , BORDERLESS_FULLSCREEN = 3 } |
enum class | MagFilter : uint32_t { NEAREST , LINEAR } |
enum class | Vsync { ENABLED , ADAPTIVE , DISABLED } |
Public Attributes | |
int | window_width { 800 } |
int | window_height { 640 } |
int | window_bpp { 32 } |
int | msaa_level { 32 } |
int | fps_limit { 60 } |
int | fixed_ts { fps_limit * 2 } |
int | anisotropic { 16 } |
std::string | write_dir {} |
std::string | game_title { "My ASGE Game" } |
WindowMode | mode { WindowMode::WINDOWED } |
MagFilter | mag_filter {MagFilter::LINEAR} |
Vsync | vsync {Vsync::ADAPTIVE} |
GameSettings allows you to configure the game window and its initial state upon construction of the game. You could easily use a GUI to create an instance of GameSettings and then construct the game using it.
Definition at line 45 of file GameSettings.hpp.
|
strong |
Enumerator | |
---|---|
NEAREST | Takes the nearest pixel in manhattan distance. |
LINEAR | Takes the weighted average of all 4 pixels. |
Definition at line 55 of file GameSettings.hpp.
|
strong |
Definition at line 61 of file GameSettings.hpp.
|
strong |
Definition at line 47 of file GameSettings.hpp.
int ASGE::GameSettings::anisotropic { 16 } |
Improves filtering at oblique angles. Not useful for 2D.
Definition at line 77 of file GameSettings.hpp.
int ASGE::GameSettings::fixed_ts { fps_limit * 2 } |
The delta between fixed time-steps.
Definition at line 76 of file GameSettings.hpp.
int ASGE::GameSettings::fps_limit { 60 } |
The engine will attempt to never exceed this tick rate.
Definition at line 75 of file GameSettings.hpp.
std::string ASGE::GameSettings::game_title { "My ASGE Game" } |
The window title.
Definition at line 80 of file GameSettings.hpp.
MagFilter ASGE::GameSettings::mag_filter {MagFilter::LINEAR} |
Textures will use this filter by default.
Definition at line 82 of file GameSettings.hpp.
WindowMode ASGE::GameSettings::mode { WindowMode::WINDOWED } |
The window mode i.e. Fullscreen.
Definition at line 81 of file GameSettings.hpp.
int ASGE::GameSettings::msaa_level { 32 } |
MSAA can help with edges, but be lowered if FPS is poor.
Definition at line 74 of file GameSettings.hpp.
int ASGE::GameSettings::window_bpp { 32 } |
The Bits Per Pixel (BPP) of the window.
Definition at line 73 of file GameSettings.hpp.
int ASGE::GameSettings::window_height { 640 } |
The height of the GL Window to create.
Definition at line 72 of file GameSettings.hpp.
int ASGE::GameSettings::window_width { 800 } |
The width of the GL Window to create.
Definition at line 71 of file GameSettings.hpp.
std::string ASGE::GameSettings::write_dir {} |
The default write directory for ASGE IO.
Definition at line 79 of file GameSettings.hpp.