summaryrefslogtreecommitdiff
path: root/src/main/engine/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/engine/engine.h')
-rw-r--r--src/main/engine/engine.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/engine/engine.h b/src/main/engine/engine.h
index 3c75d1a..8ed7a5a 100644
--- a/src/main/engine/engine.h
+++ b/src/main/engine/engine.h
@@ -20,10 +20,21 @@
#ifndef __ENGINE_H__
#define __ENGINE_H__
+#include "ui/ui.h"
+#include "../util/list.h"
+#include "domain/color.h"
+
enum EngineInput {
ENGINE_MOUSE_PRESSED = 4
};
+typedef struct {
+ UI *ui;
+ list_t *circles;
+ void (*draw_frame)();
+ float ortho_left, ortho_right, ortho_top, ortho_bottom;
+} Engine;;
+
void engine_init(int width, int height);
void engine_draw_circle(float cx, float cy, float r, int num_segments, int outline);
void engine_draw_line(float x1, float y1, float x2, float y2);