aboutsummaryrefslogtreecommitdiff
path: root/src/sdlw.h.old
diff options
context:
space:
mode:
authoramy <[email protected]>2023-04-14 13:22:32 +0000
committeramy <[email protected]>2023-04-14 13:22:32 +0000
commitd769c253e8a6ddc67cf8424da2017d309e93f11b (patch)
treef62685a725836337ab29cd8c3448d49d53ed4004 /src/sdlw.h.old
init
Diffstat (limited to 'src/sdlw.h.old')
-rw-r--r--src/sdlw.h.old13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sdlw.h.old b/src/sdlw.h.old
new file mode 100644
index 0000000..7648d93
--- /dev/null
+++ b/src/sdlw.h.old
@@ -0,0 +1,13 @@
+#include <SDL2/SDL.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "util.h"
+typedef struct {
+ SDL_Window* w;
+ SDL_Renderer* r;
+} bw;
+#define sdl_clear(r) SDL_SetRenderDrawColor(r,0,0,0,0);\
+ SDL_RenderClear(r);
+bw sdl_init();
+void sdl_loop(bw);
+void sdl_circle(bw w,int x, int y, int r);