aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/Gif.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-31 18:11:35 +0100
committerdec05eba <dec05eba@protonmail.com>2018-10-31 18:11:36 +0100
commit07c9e3d393db4b4d59262f7d9898be169ac2f927 (patch)
tree2623fbfd1c1614c2de575437cb89a787e93d8c1d /include/dchat/Gif.hpp
parenta5e2adedf38f84a8be5e8d844e02991d3bbfecca (diff)
Make generic
Diffstat (limited to 'include/dchat/Gif.hpp')
-rw-r--r--include/dchat/Gif.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/dchat/Gif.hpp b/include/dchat/Gif.hpp
index f97ff2f..9e39473 100644
--- a/include/dchat/Gif.hpp
+++ b/include/dchat/Gif.hpp
@@ -28,16 +28,13 @@ namespace dchat
virtual ~Gif();
Vec2u getSize() const;
+ // Throws GifLoadException on error
void update();
static bool isDataGif(const StringView &data);
protected:
// Return false if texture creation failed
virtual bool createTexture(int width, int height) = 0;
- virtual void setPosition(const Vec2f &position) = 0;
- virtual Vec2f getPosition() const = 0;
- virtual void setScale(const Vec2f &scale) = 0;
- virtual void setColor(Color color) = 0;
// Size of texture data is same as the size that the texture was created with (also same size returned by @getSize function)
virtual void updateTexture(void *textureData) = 0;
private:
@@ -48,5 +45,6 @@ namespace dchat
unsigned int currentFrame;
double timeElapsedCs;
Clock frameTimer;
+ bool created;
};
}