image display test
bring your own test.png
This commit is contained in:
parent
380f715903
commit
51d85c011b
2 changed files with 72 additions and 0 deletions
11
dat.h
11
dat.h
|
@ -1,5 +1,16 @@
|
|||
typedef struct Image Image;
|
||||
struct Image {
|
||||
int w;
|
||||
int h;
|
||||
int bpp;
|
||||
unsigned char *data;
|
||||
SDL_Texture *tex;
|
||||
};
|
||||
|
||||
typedef struct State State;
|
||||
struct State {
|
||||
SDL_Window *win;
|
||||
SDL_Renderer *ren;
|
||||
|
||||
Image *test;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue