sprite.h 299 B

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