image display test

bring your own test.png
This commit is contained in:
cat 2025-05-25 14:40:05 +10:00
parent 380f715903
commit 51d85c011b
2 changed files with 72 additions and 0 deletions

11
dat.h
View file

@ -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;
};