Mercurial > fife-parpg
diff engine/core/controller/enginesettings.h @ 425:ad7969d9460b
A client can now specify a global color key to be used with all images. The default color key is (255,0,255) in RGB format. Also the client can enable/disable the color key feature by using the setColorKeyEnabled function in the EngineSettings class. By default the color key feature is disabled. fixes[t:451]
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 20 Feb 2010 19:11:01 +0000 |
parents | 64738befdf3b |
children | 79678719d569 |
line wrap: on
line diff
--- a/engine/core/controller/enginesettings.h Fri Feb 12 22:00:58 2010 +0000 +++ b/engine/core/controller/enginesettings.h Sat Feb 20 19:11:01 2010 +0000 @@ -186,17 +186,41 @@ return m_image_chunking_size; } + /** Sets the title of the window + */ void setWindowTitle(const std::string& title); + /** Gets the current window title + */ std::string getWindowTitle() const { return m_windowtitle; } + /** Sets the icon that appears in the window title bar + */ void setWindowIcon(const std::string& icon); + /** Gets the icon in the window title bar + */ std::string getWindowIcon() const { return m_windowicon; } + + /** Sets whether to use the colorkey feature + */ + void setColorKeyEnabled(bool colorkeyenable); + + /** Gets whether the colorkey feature is in use + */ + bool isColorKeyEnabled() const; + + /** Sets the global colorkey to use for images + */ + void setColorKey(Uint8 r, Uint8 g, Uint8 b); + + /** Gets the global colorkey setting + */ + const SDL_Color& getColorKey() const; private: unsigned int m_bitsperpixel; @@ -214,6 +238,8 @@ unsigned int m_defaultfontsize; std::string m_defaultfontglyphs; unsigned int m_image_chunking_size; + bool m_iscolorkeyenabled; + SDL_Color m_colorkey; }; }//FIFE