2 changed files with 40 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
#include "Settings.h" |
|||
|
|||
Settings * Settings::_instance = 0; |
|||
|
|||
Settings * Settings::instance(){ |
|||
if(_instance == 0){ |
|||
_instance = new Settings(); |
|||
} |
|||
return _instance; |
|||
} |
|||
|
|||
Settings::Settings(){ |
|||
_fullscreen = false; |
|||
} |
|||
|
|||
void Settings::setFullscreen(bool f){ |
|||
_fullscreen = f; |
|||
} |
|||
|
|||
bool Settings::getFullscreen(){ |
|||
return _fullscreen; |
|||
} |
@ -0,0 +1,18 @@ |
|||
#pragma once |
|||
|
|||
#include "ofMain.h" |
|||
|
|||
class Settings { |
|||
public: |
|||
static Settings * instance(); |
|||
|
|||
void setFullscreen(bool f); |
|||
bool getFullscreen(); |
|||
|
|||
private: |
|||
static Settings * _instance; |
|||
|
|||
Settings(); |
|||
|
|||
bool _fullscreen; |
|||
}; |
Loading…
Reference in new issue