aboutsummaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-07 23:26:38 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-07 23:26:38 +0300
commite41af6679dae3f4c69b46962a6bf1a1f81bee600 (patch)
treeb8d48e6707c4114408b270853ba8c6114d5d5a21 /src/display.h
kind of working but not really
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h
new file mode 100644
index 0000000..088feb7
--- /dev/null
+++ b/src/display.h
@@ -0,0 +1,19 @@
+#ifndef DISPLAY_H
+#define DISPLAY_H
+
+typedef struct dspl_createinfo {
+ int width;
+ int height;
+ char *name;
+ int fps;
+ void (*update_func)();
+} dspl_createinfo;
+
+void dspl_create(dspl_createinfo info);
+void dspl_start();
+void dspl_destroy();
+
+void dspl_draw_line(int x1, int y1, int x2, int y2, int c);
+void dspl_draw_circle(int cx, int cy, int r);
+
+#endif