Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <EngineSettings.h>
Public Member Functions | |
EngineSettings () | |
u32 | getBitdepth () |
bool | getFullscreen () |
u32 | getHeight () |
void * | getMainWindowId () |
bool | getVSync () |
u32 | getWidth () |
void | loadOptions (const std::string &optionsfile) |
void | saveOptions (const std::string &optionsfile) |
void | setBitdepth (u32 bitdepth) |
void | setFullscreen (bool fullscreen) |
void | setHeight (u32 height) |
void | setMainWindowID (void *windowId) |
void | setVSync (bool vsync) |
void | setWidth (u32 width) |
~EngineSettings () | |
Static Public Member Functions | |
static EngineSettings * | getInstance () |
Get instance. | |
Protected Attributes | |
u32 | mBitdepth |
core::ConfigFile * | mConfigFile |
bool | mFullscreen |
u32 | mHeight |
void * | mMainWindowId |
bool | mOptionsModified |
bool | mVSync |
u32 | mWidth |
Game Options. |
engine::EngineSettings::EngineSettings | ( | ) |
References mBitdepth, mConfigFile, mFullscreen, mHeight, mMainWindowId, mOptionsModified, mVSync, and mWidth.
engine::EngineSettings::~EngineSettings | ( | ) |
u32 engine::EngineSettings::getBitdepth | ( | ) |
References mBitdepth.
Referenced by render::RenderManager::initializeImpl().
bool engine::EngineSettings::getFullscreen | ( | ) |
References mFullscreen.
Referenced by render::RenderManager::initializeImpl().
u32 engine::EngineSettings::getHeight | ( | ) |
References mHeight.
Referenced by render::RenderManager::initializeImpl().
EngineSettings * engine::EngineSettings::getInstance | ( | ) | [static] |
Get instance.
Reimplemented from core::Singleton< EngineSettings >.
void * engine::EngineSettings::getMainWindowId | ( | ) |
References mMainWindowId.
Referenced by render::RenderManager::initializeImpl().
bool engine::EngineSettings::getVSync | ( | ) |
References mVSync.
u32 engine::EngineSettings::getWidth | ( | ) |
References mWidth.
Referenced by render::RenderManager::initializeImpl().
void engine::EngineSettings::loadOptions | ( | const std::string & | optionsfile | ) |
Method reads a game configuration file and instantiates all options.
optionsfile,: | The file that contains game information. |
References core::ConfigFile::getSetting(), core::ConfigFile::load(), mBitdepth, mConfigFile, mFullscreen, mHeight, mVSync, mWidth, saveOptions(), core::splitString(), and core::stringToInt().
Referenced by engine::EngineManager::loadOptions().
void engine::EngineSettings::saveOptions | ( | const std::string & | optionsfile | ) |
Method saves a game configuration file with all the instantiated options.
optionsfile,: | The file that will contain game information. |
References core::intToString(), mBitdepth, mConfigFile, mFullscreen, mHeight, mOptionsModified, mVSync, mWidth, core::ConfigFile::save(), and core::ConfigFile::setSetting().
Referenced by loadOptions(), and engine::EngineManager::saveOptions().
void engine::EngineSettings::setBitdepth | ( | u32 | bitdepth | ) |
References mBitdepth, and mOptionsModified.
void engine::EngineSettings::setFullscreen | ( | bool | fullscreen | ) |
References mFullscreen, and mOptionsModified.
void engine::EngineSettings::setHeight | ( | u32 | height | ) |
References mHeight, and mOptionsModified.
void engine::EngineSettings::setMainWindowID | ( | void * | windowId | ) |
References mMainWindowId.
void engine::EngineSettings::setVSync | ( | bool | vsync | ) |
References mOptionsModified, and mVSync.
void engine::EngineSettings::setWidth | ( | u32 | width | ) |
References mOptionsModified, and mWidth.
u32 engine::EngineSettings::mBitdepth [protected] |
Referenced by EngineSettings(), getBitdepth(), loadOptions(), saveOptions(), and setBitdepth().
core::ConfigFile* engine::EngineSettings::mConfigFile [protected] |
Referenced by EngineSettings(), loadOptions(), and saveOptions().
bool engine::EngineSettings::mFullscreen [protected] |
Referenced by EngineSettings(), getFullscreen(), loadOptions(), saveOptions(), and setFullscreen().
u32 engine::EngineSettings::mHeight [protected] |
Referenced by EngineSettings(), getHeight(), loadOptions(), saveOptions(), and setHeight().
void* engine::EngineSettings::mMainWindowId [protected] |
Referenced by EngineSettings(), getMainWindowId(), and setMainWindowID().
bool engine::EngineSettings::mOptionsModified [protected] |
Referenced by EngineSettings(), saveOptions(), setBitdepth(), setFullscreen(), setHeight(), setVSync(), and setWidth().
bool engine::EngineSettings::mVSync [protected] |
Referenced by EngineSettings(), getVSync(), loadOptions(), saveOptions(), and setVSync().
u32 engine::EngineSettings::mWidth [protected] |
Game Options.
Referenced by EngineSettings(), getWidth(), loadOptions(), saveOptions(), and setWidth().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:07 by
Doxygen
(1.7.4)
|