/* * AnimatedTexture.h * * Created on: Apr 12, 2019 * Author: dennisgunia */ #ifndef ANIMATEDTEXTURE_H_ #define ANIMATEDTEXTURE_H_ #include #include #include #include #include #include #include #include typedef SDL_Texture* FramePointer; class AnimatedTexture { private: bool animatedSequence; int frames; int frame; FramePointer *tx_frames; public: AnimatedTexture( ); void setupAnimatedTexture( std::string file, int frames ,SDL_Renderer *render ); void doAnimationStep(); virtual ~AnimatedTexture(); int getOffset(); SDL_Texture *getTexture(int offest); }; #endif /* ANIMATEDTEXTURE_H_ */