diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-05-26 14:50:23 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-05-26 14:50:23 +0200 |
commit | 8f6fd2a1316432970f1d86515819e7bbe15ddab3 (patch) | |
tree | 5852619dfe41c59bb7bf23df2652b7a6d8d3689e /src/graphics/engine/engine.h | |
parent | b41957f2f95d8f62817705a1c82322d9463d28a2 (diff) | |
download | colobot-8f6fd2a1316432970f1d86515819e7bbe15ddab3.tar.gz colobot-8f6fd2a1316432970f1d86515819e7bbe15ddab3.tar.bz2 colobot-8f6fd2a1316432970f1d86515819e7bbe15ddab3.zip |
Changes in texture code & refactoring
* refactored and altered slightly the texture pack code
* added flushing of texture cache
* some refactoring and const-correctness in CApplication methods
Diffstat (limited to 'src/graphics/engine/engine.h')
-rw-r--r-- | src/graphics/engine/engine.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/graphics/engine/engine.h b/src/graphics/engine/engine.h index 8df912e..af8cf6a 100644 --- a/src/graphics/engine/engine.h +++ b/src/graphics/engine/engine.h @@ -726,9 +726,6 @@ public: //! Writes a screenshot containing the current frame bool WriteScreenShot(const std::string& fileName, int width, int height); - //! Set texture pack - void SetTexturePack(const std::string& texpackName); - //@{ //! Management of game pause mode @@ -961,6 +958,9 @@ public: //! Deletes the given texture, unloading it and removing from cache void DeleteTexture(const Texture& tex); + //! Empties the texture cache + void FlushTextureCache(); + //! Defines of the distance field of vision void SetTerrainVision(float vision); @@ -1233,7 +1233,7 @@ protected: const Material& mat, int state); //! Create texture and add it to cache - Texture CreateTexture(const std::string &texName, const TextureCreateParams ¶ms, CImage* image = nullptr, std::string orginalName = ""); + Texture CreateTexture(const std::string &texName, const TextureCreateParams ¶ms, CImage* image = nullptr); //! Tests whether the given object is visible bool IsVisible(int objRank); @@ -1407,9 +1407,6 @@ protected: * so are disabled for subsequent load calls. */ std::set<std::string> m_texBlacklist; - //! Texture pack - std::string m_texPack; - //! Mouse cursor definitions EngineMouse m_mice[ENG_MOUSE_COUNT]; //! Texture with mouse cursors |