aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..fd2da09
--- /dev/null
+++ b/main.c
@@ -0,0 +1,25 @@
+#include "graphics.h"
+#include "config.h"
+
+
+int main()
+{
+ t_state state;
+ /* t_cardioid cardioid; */
+
+ /* if (cardioid_init(&cardioid, 10, WINDOW_WIDTH, WINDOW_HEIGHT) == -1) */
+ /* { */
+ /* fprintf(stderr, "[ERROR] couldn't initialize caridoid\n"); */
+ /* return (1); */
+ /* } */
+ /* for (size_t i = 0; i < 10; i++) */
+ /* { */
+ /* printf("%d %d\n", cardioid.points[i].x, cardioid.points[i].y); */
+ /* } */
+ graphics_init(&state, WINDOW_WIDTH, WINDOW_HEIGHT);//, &cardioid);
+ graphics_run(&state);
+ graphics_quit(&state);
+ /* cardioid_quit(&cardioid); */
+
+ return 0;
+}