summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine/engine.h
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-12 14:55:41 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-12 14:55:41 +0200
commit04f747b00b95ebbd32457eae8a397695dc6981af (patch)
tree7562002a77ad50c637a6e90cca3956972917460e /src/graphics/engine/engine.h
parent06cf93f466871eb9f6d6d93feaeaef14f58573af (diff)
downloadcolobot-04f747b00b95ebbd32457eae8a397695dc6981af.tar.gz
colobot-04f747b00b95ebbd32457eae8a397695dc6981af.tar.bz2
colobot-04f747b00b95ebbd32457eae8a397695dc6981af.zip
Added simple texturepack support (#208)
Diffstat (limited to 'src/graphics/engine/engine.h')
-rw-r--r--src/graphics/engine/engine.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graphics/engine/engine.h b/src/graphics/engine/engine.h
index 16fb4e6..8df912e 100644
--- a/src/graphics/engine/engine.h
+++ b/src/graphics/engine/engine.h
@@ -726,6 +726,10 @@ 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
void SetPause(bool pause);
@@ -1229,7 +1233,7 @@ protected:
const Material& mat, int state);
//! Create texture and add it to cache
- Texture CreateTexture(const std::string &texName, const TextureCreateParams &params, CImage* image = nullptr);
+ Texture CreateTexture(const std::string &texName, const TextureCreateParams &params, CImage* image = nullptr, std::string orginalName = "");
//! Tests whether the given object is visible
bool IsVisible(int objRank);
@@ -1403,6 +1407,9 @@ 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