i would like for this program to be comprehensible
This commit is contained in:
parent
4b410a3511
commit
57ad9fd139
11 changed files with 2 additions and 395 deletions
34
dat.h
34
dat.h
|
@ -1,34 +0,0 @@
|
|||
typedef struct Samply Samply;
|
||||
typedef struct Image Image;
|
||||
typedef struct State State;
|
||||
|
||||
struct Samply {
|
||||
Image *tx; /* this is a pointer to one of the images below */
|
||||
|
||||
Image *idle;
|
||||
Image *walka;
|
||||
Image *walkb;
|
||||
Image *error;
|
||||
};
|
||||
|
||||
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;
|
||||
SDL_DisplayID dpy;
|
||||
SDL_Rect bounds;
|
||||
|
||||
Uint64 lastframe;
|
||||
Uint64 frame;
|
||||
|
||||
Samply *sam;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue