You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
2.3 KiB
38 lines
2.3 KiB
#ifndef __SDL_ANIMATED_SPRITE_HEADER__
|
|
#define __SDL_ANIMATED_SPRITE_HEADER__
|
|
#include "../core/coreSprite.h"
|
|
|
|
class animatedSprite : public sdlSprite {
|
|
private:
|
|
unsigned __int64 m_nNextTS;
|
|
unsigned __int64 m_nIncrementTS;
|
|
SDL_Rect m_sTexCut;
|
|
int m_nFPS;
|
|
int m_nFramesTotal;
|
|
int m_nTexCols;
|
|
int m_nTexRows;
|
|
bool m_bInterateRows;
|
|
protected:
|
|
virtual void draw(SDL_Renderer* tPtr);
|
|
virtual bool create(void);
|
|
public:
|
|
explicit animatedSprite(char* textureFile, int x, int y, int width, int height, int count=-1);
|
|
explicit animatedSprite(char* textureFile, int x, int y, int width, int height, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, int x, int y, int width, int height, int cutx, int cuty, int cutw, int cuth, int count=-1);
|
|
explicit animatedSprite(char* textureFile, int x, int y, int width, int height, int cutx, int cuty, int cutw, int cuth, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, int x, int y, int width, int height, int cutx, int cuty, int cutw, int cuth, int cols, int rows, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, int count=-1);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, int cols, int rows, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, SDL_Rect &cut, int count=-1);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, SDL_Rect &cut, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect &geom, SDL_Rect &cut, int cols, int rows, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, int count=-1);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, int cols, int rows, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, SDL_Rect *cut, int count=-1);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, SDL_Rect *cut, int count, int fps, bool byRow);
|
|
explicit animatedSprite(char* textureFile, SDL_Rect *geom, SDL_Rect *cut, int cols, int rows, int count, int fps, bool byRow);
|
|
virtual ~animatedSprite();
|
|
};
|
|
#endif
|