sprite.h 310 B

12345678910111213141516171819
  1. #ifndef SPRITE_H_
  2. #define SPRITE_H_
  3. #include <graphx.h>
  4. typedef struct Sprite Sprite;
  5. struct Sprite {
  6. int width;
  7. int height;
  8. gfx_sprite_t* data;
  9. void (*resize)(Sprite*, int, int);
  10. };
  11. void free_Sprite(Sprite* self);
  12. Sprite* new_Sprite(int width, int height, void* compressed_data);
  13. #endif