mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 16:24:55 +00:00
Add fullscreen CVar
This commit is contained in:
@@ -21,6 +21,7 @@ using namespace std::literals;
|
||||
|
||||
struct CVarCommons {
|
||||
CVarManager& m_mgr;
|
||||
CVar* m_fullscreen = nullptr;
|
||||
CVar* m_graphicsApi = nullptr;
|
||||
CVar* m_drawSamples = nullptr;
|
||||
CVar* m_texAnisotropy = nullptr;
|
||||
@@ -45,6 +46,10 @@ struct CVarCommons {
|
||||
|
||||
CVarCommons(CVarManager& manager);
|
||||
|
||||
bool getFullscreen() const { return m_fullscreen->toBoolean(); }
|
||||
|
||||
void setFullscreen(bool b) { m_fullscreen->fromBoolean(b); }
|
||||
|
||||
std::string getGraphicsApi() const { return m_graphicsApi->toLiteral(); }
|
||||
|
||||
void setGraphicsApi(std::string_view api) { m_graphicsApi->fromLiteral(api); }
|
||||
|
||||
Reference in New Issue
Block a user