spritesheet.h (222B)
1 #pragma once 2 3 #include <stdint.h> 4 #include <stddef.h> 5 #include "animation.h" 6 7 typedef struct { 8 uint8_t *data; 9 size_t len; 10 int width, height, stride; 11 } Spritesheet; 12 13 Spritesheet SpritesheetGen(Animation *img, int cols);