aboutsummaryrefslogtreecommitdiffstats
path: root/include/texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/texture.hpp')
-rw-r--r--include/texture.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/texture.hpp b/include/texture.hpp
index 9531d9d..d4bcfa9 100644
--- a/include/texture.hpp
+++ b/include/texture.hpp
@@ -137,6 +137,9 @@ public:
* @param l the list of textures
*/
TextureIterator(const std::vector<std::string> &l);
+
+ void appendGIF(const std::string& gif);
+
/**
* Shifts to the next texture in the array, stopping at the end if we're there.
* Also binds the texture.
@@ -148,19 +151,21 @@ public:
* Also binds the texture.
*/
void operator--(int) noexcept;
+
/**
* Goes to the given index in the list.
* @param index the index to use
*/
- void operator()(const int &index);
+ void operator()(const int& index);
+
/**
* Gets the dimensions of the currently selected texture.
* @return the texture's dimensions
*/
- inline const vec2& getTextureDim(void)
+ inline const vec2& getTextureDim(void) const
{ return position->getDim(); }
- inline unsigned int size(void)
+ inline unsigned int size(void) const
{ return textures.size(); }
};