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.
 
 
 
 
 
 

22 lines
557 B

#ifndef __SDL_CORE_SPRITE_HEADER__
#define __SDL_CORE_SPRITE_HEADER__
#include "coreElement.h"
class sdlSprite: public sdlGraphicElement{
private:
char m_sTextureName[1024];
protected:
TEXTURE_HEAP_ITEM * m_pTexItem;
virtual void draw(SDL_Renderer * tPtr);
virtual bool create(void);
public:
explicit sdlSprite(int x, int y, int width, int height, char *textureFile);
explicit sdlSprite(SDL_Rect &R, char* textureFile);
explicit sdlSprite(SDL_Rect *R, char* textureFile);
virtual ~sdlSprite();
friend classGUI_SDL;
};
#endif