22 #ifndef FIFE_ENGINESETTINGS_H
23 #define FIFE_ENGINESETTINGS_H
std::string getDefaultFontGlyphs()
Gets current glyphs for default font.
void setDefaultFontSize(uint16_t defaultfontsize)
Sets size for default font.
This class defines the engine settings on engine init.
float getMaxVolume() const
Gets maximum volume that can be set.
std::string getDefaultFontPath()
Gets current path for default font.
bool isColorKeyEnabled() const
Gets whether the colorkey feature is in use.
~EngineSettings()
Destructor.
void setGLUseFramebuffer(bool ogluseframebuffer)
Sets if OpenGL renderbackend should use FramebufferObject (when available)
void setFrameLimitEnabled(bool limited)
Sets whether to use the frame limiter.
void setInitialVolume(float volume)
Sets initial engine sound volume.
void setSDLRemoveFakeAlpha(bool sdlremovefakealpha)
Sets if fake alpha is removed in SDL renderbackend.
void setDefaultFontGlyphs(const std::string &defaultfontglyphs)
Sets glyphs for default font.
bool m_sdlremovefakealpha
EngineSettings()
Constructor.
void setMouseSensitivity(float sens)
Sets mouse sensitivity.
bool isFrameLimitEnabled() const
Gets whether the frame limiter is in use.
std::string m_defaultfontglyphs
std::string getWindowIcon()
Gets the icon in the window title bar.
void setFullScreen(bool fullscreen)
Sets fullscreen / windowed mode.
uint16_t getDefaultFontSize() const
Gets size for default font.
uint16_t getScreenHeight() const
Gets screen height (pixels)
void setColorKeyEnabled(bool colorkeyenable)
Sets whether to use the colorkey feature.
const SDL_Color & getColorKey() const
Gets the global colorkey setting.
const std::string & getVideoDriver() const
uint16_t m_defaultfontsize
const std::string & getWindowTitle() const
Gets the current window title.
bool isGLUseNPOT() const
Tells if OpenGL renderbackend should use NPOT Textures.
void setGLCompressImages(bool oglcompressimages)
Sets if images are compress by video driver in OpenGL renderbackend.
uint16_t getScreenWidth() const
Gets screen width (pixels)
void setWindowTitle(const std::string &title)
Sets the title of the window.
float getMouseSensitivity() const
Gets mouse sensitivity.
void setDefaultFontPath(const std::string &defaultfontpath)
Sets path for default font.
bool isGLCompressImages() const
Tells if images are compress by video driver in OpenGL renderbackend.
std::string m_defaultfontpath
void setScreenHeight(uint16_t screenheight)
Sets screen height (pixels)
const std::string & getDefaultFontPath() const
Gets current path for default font.
float getInitialVolume() const
Gets initial engine sound volume.
void setFrameLimit(uint16_t framelimit)
Sets the frame limit.
std::string getWindowTitle()
Gets the current window title.
const std::string & getRenderBackend() const
Gets currently set renderbackend name.
uint8_t getBitsPerPixel() const
Gets currently set bits per pixel value.
void setRenderBackend(const std::string &renderbackend)
Sets name for renderbackend.
void setScreenWidth(uint16_t screenwidth)
Sets screen width (pixels)
void setColorKey(uint8_t r, uint8_t g, uint8_t b)
Sets the global colorkey to use for images.
std::vector< uint8_t > getPossibleBitsPerPixel() const
Gets all possible bits per pixel values.
bool isMouseAccelerationEnabled() const
Returns if mouse acceleration is enabled or not.
bool isSDLRemoveFakeAlpha() const
Tells if fake alpha is removed in SDL renderbackend.
std::string m_windowtitle
uint16_t getFrameLimit() const
Gets the frame limit.
bool isGLUseFramebuffer() const
Tells if OpenGL renderbackend should use FramebufferObject.
void setGLUseNPOT(bool oglusenpot)
Sets if OpenGL renderbackend should use NPOT Textures (when available)
bool isFullScreen() const
True, if set to fullscreen.
void setBitsPerPixel(uint8_t bitsperpixel)
Sets bits per pixel.
void setMouseAccelerationEnabled(bool acceleration)
Sets mouse acceleration if mouse acceleration is enabled, then the mouse sensitivity is used as speed...
void setLightingModel(uint32_t lighting)
Sets the light model.
void setWindowIcon(const std::string &icon)
Sets the icon that appears in the window title bar.
uint32_t getLightingModel() const
Gets the currently set light model.
void setVideoDriver(const std::string &driver)
std::string m_videodriver
const std::string & getWindowIcon() const
Gets the icon in the window title bar.
std::string getRenderBackend()
Gets currently set renderbackend name.
const std::string & getDefaultFontGlyphs() const
Gets current glyphs for default font.
std::string m_renderbackend
std::vector< std::string > getPossibleRenderBackends()
Gets all possible renderbackend names.