slutpet/dat.h
cat aa95148fc9 AAAAA IT ANIMATES
i will probably handle animation with an Animation struct
containing an array of frames, with options to set intervals
and whether it loops or reverts to another state after
the animation is done
2025-05-26 15:39:16 +10:00

27 lines
393 B
C

typedef struct Samply Samply;
typedef struct Image Image;
typedef struct State State;
struct Samply {
Image *idle;
Image *walka;
Image *walkb;
};
struct Image {
char *name; /* used for debugging purposes */
int w;
int h;
int bpp;
unsigned char *data;
SDL_Surface *sur;
SDL_Texture *tex;
};
struct State {
SDL_Window *win;
SDL_Renderer *ren;
Uint64 lastframe;
Samply *sam;
};