tibia-client/src/framework/graphics/animatedtexture.h

27 lines
597 B
C
Raw Normal View History

2011-05-13 01:24:57 +02:00
#ifndef ANIMATEDTEXTURE_H
#define ANIMATEDTEXTURE_H
2011-08-14 04:09:11 +02:00
#include "texture.h"
2011-05-13 01:24:57 +02:00
class AnimatedTexture : public Texture
{
public:
AnimatedTexture(int width, int height, int channels, int numFrames, uchar *framesPixels, int *framesDelay);
~AnimatedTexture();
2011-05-13 01:24:57 +02:00
void enableBilinearFilter();
void processAnimation();
private:
uint *m_framesTextureId;
int *m_framesDelay;
int m_numFrames;
int m_currentFrame;
int m_lastAnimCheckTicks;
};
typedef std::shared_ptr<AnimatedTexture> AnimatedTexturePtr;
typedef std::weak_ptr<AnimatedTexture> AnimatedTextureWeakPtr;
2011-05-13 01:24:57 +02:00
2011-08-14 04:09:11 +02:00
#endif