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.
std::string getDefaultFontPath()
Gets current path for default font.
float getMaxVolume() const
Gets maximum volume that can be set.
bool isColorKeyEnabled() const
Gets whether the colorkey feature is in use.
uint16_t getFrameLimit() const
Gets the frame limit.
~EngineSettings()
Destructor.
bool isSDLRemoveFakeAlpha() const
Tells if fake alpha is removed in SDL renderbackend.
const std::string & getSDLDriver() const
Gets the used SDL render driver.
void setGLUseFramebuffer(bool ogluseframebuffer)
Sets if OpenGL renderbackend should use FramebufferObject (when available)
void setSDLDriver(const std::string &driver)
Sets the used SDL render driver.
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.
uint8_t getDisplay() const
Gets the display index, starts with 0.
TextureFiltering m_oglTextureFilter
bool m_sdlremovefakealpha
EngineSettings()
Constructor.
void setMouseSensitivity(float sens)
Sets mouse sensitivity.
void setGLUseMonochrome(bool monochrome)
Sets if OpenGL renderbackend should render only monochrome.
void setGLTextureFiltering(TextureFiltering filter)
Sets texture filtering method for OpenGL renderbackend.
std::string m_defaultfontglyphs
std::string getWindowIcon()
Gets the icon in the window title bar.
void setFullScreen(bool fullscreen)
Sets fullscreen / windowed mode.
TextureFiltering getGLTextureFiltering() const
Gets current texture filter which uses OpenGL.
void setColorKeyEnabled(bool colorkeyenable)
Sets whether to use the colorkey feature.
uint16_t m_defaultfontsize
const std::string & getDefaultFontGlyphs() const
Gets current glyphs for default font.
void setGLCompressImages(bool oglcompressimages)
Sets if images are compress by video driver in OpenGL renderbackend.
void setNativeImageCursorEnabled(bool nativeimagecursor)
Enables or disables native image cursor.
void setWindowTitle(const std::string &title)
Sets the title of the window.
const std::string & getDefaultFontPath() const
Gets current path for default font.
void setDefaultFontPath(const std::string &defaultfontpath)
Sets path for default font.
float getGLAlphaTestValue() const
Gets current alpha test value which uses OpenGL.
void setGLUseDepthBuffer(bool buffer)
Sets if OpenGL renderbackend should use depth buffer.
void setGLUseMipmapping(bool mipmapping)
Sets if OpenGL renderbackend should use mipmapping.
std::string m_defaultfontpath
bool isFrameLimitEnabled() const
Gets whether the frame limiter is in use.
bool isVSync() const
True, if vsync is enable, otherwise false.
void setScreenHeight(uint16_t screenheight)
Sets screen height (pixels)
const SDL_Color & getColorKey() const
Gets the global colorkey setting.
void setFrameLimit(uint16_t framelimit)
Sets the frame limit.
uint16_t getDefaultFontSize() const
Gets size for default font.
void setGLAlphaTestValue(float alpha)
Sets alpha test value for OpenGL renderbackend.
std::string getWindowTitle()
Gets the current window title.
uint16_t getRefreshRate() const
Gets the refresh rate.
float getMouseSensitivity() const
Gets mouse sensitivity.
const std::string & getWindowIcon() const
Gets the icon in the window title bar.
bool isGLUseDepthBuffer() const
Tells if OpenGL renderbackend should use depth buffer.
uint8_t getBitsPerPixel() const
Gets currently set bits per pixel value.
bool isGLCompressImages() const
Tells if images are compress by video driver in OpenGL renderbackend.
void setRenderBackend(const std::string &renderbackend)
Sets name for renderbackend.
uint32_t getLightingModel() const
Gets the currently set light model.
void setJoystickSupport(bool support)
Enables or disables joystick and gamepad support.
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.
bool isFullScreen() const
True, if set to fullscreen.
bool isMouseAccelerationEnabled() const
Returns if mouse acceleration is enabled or not.
std::string m_renderDriver
std::string m_windowtitle
std::vector< uint8_t > getPossibleBitsPerPixel() const
Gets all possible bits per pixel values.
uint16_t getScreenWidth() const
Gets screen width (pixels)
bool isNativeImageCursorEnabled() const
Returns whether cursors set to an image or an animation are drawn natively.
void setGLUseNPOT(bool oglusenpot)
Sets if OpenGL renderbackend should use NPOT Textures (when available)
void setVSync(bool vsync)
Sets Vsync.
void setBitsPerPixel(uint8_t bitsperpixel)
Sets bits per pixel.
float getInitialVolume() const
Gets initial engine sound volume.
const std::string & getVideoDriver() const
Gets the video driver.
void setMouseAccelerationEnabled(bool acceleration)
Sets mouse acceleration if mouse acceleration is enabled, then the mouse sensitivity is used as speed...
void setDisplay(uint8_t display)
Sets display index, starts with 0.
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.
bool isGLUseNPOT() const
Tells if OpenGL renderbackend should use NPOT Textures.
const std::string & getWindowTitle() const
Gets the current window title.
bool isJoystickSupport() const
Returns whether joystick and gamepad support is enabled or not.
void setRefreshRate(uint16_t rate)
Sets refresh rate.
void setVideoDriver(const std::string &driver)
Sets the video driver.
const std::string & getRenderBackend() const
Gets currently set renderbackend name.
std::string m_videodriver
bool isGLUseMonochrome() const
Tells if OpenGL renderbackend should render only monochrome.
std::string getRenderBackend()
Gets currently set renderbackend name.
uint16_t getScreenHeight() const
Gets screen height (pixels)
bool isGLUseMipmapping() const
Tells if OpenGL renderbackend should use mipmapping.
bool isGLUseFramebuffer() const
Tells if OpenGL renderbackend should use FramebufferObject.
std::string m_renderbackend
std::vector< std::string > getPossibleRenderBackends()
Gets all possible renderbackend names.