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.

21 lines
557 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __SDL_CORE_SPRITE_HEADER__
  2. #define __SDL_CORE_SPRITE_HEADER__
  3. #include "coreElement.h"
  4. class sdlSprite: public sdlGraphicElement{
  5. private:
  6. char m_sTextureName[1024];
  7. protected:
  8. TEXTURE_HEAP_ITEM * m_pTexItem;
  9. virtual void draw(SDL_Renderer * tPtr);
  10. virtual bool create(void);
  11. public:
  12. explicit sdlSprite(int x, int y, int width, int height, char *textureFile);
  13. explicit sdlSprite(SDL_Rect &R, char* textureFile);
  14. explicit sdlSprite(SDL_Rect *R, char* textureFile);
  15. virtual ~sdlSprite();
  16. friend classGUI_SDL;
  17. };
  18. #endif