diff options
author | 2025-05-22 18:59:46 +0200 | |
---|---|---|
committer | 2025-05-22 18:59:46 +0200 | |
commit | a22c967a59a1e17663790db72f2d24edafc6199a (patch) | |
tree | 5aa0a60a4cba2b314f019bb0499a091e79f3fc13 /src/main/engine/engine.h | |
parent | cec27feccd1d3232ceae2bf284f66071d36cc96a (diff) | |
download | tris-a22c967a59a1e17663790db72f2d24edafc6199a.tar.gz tris-a22c967a59a1e17663790db72f2d24edafc6199a.zip |
Remove the rendiring process of the lines
I've moved that inside the game rendering function.
Diffstat (limited to 'src/main/engine/engine.h')
-rw-r--r-- | src/main/engine/engine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/engine/engine.h b/src/main/engine/engine.h index 24dbe61..1d36632 100644 --- a/src/main/engine/engine.h +++ b/src/main/engine/engine.h @@ -25,6 +25,7 @@ #include "domain/color.h" #include "shape/circle.h" +#include "shape/line.h" enum EngineInput { ENGINE_MOUSE_PRESSED = 4 @@ -38,7 +39,6 @@ typedef struct DrawFrameListener { typedef struct { UI *ui; list_t *circles1; - list_t *lines; float ortho_left, ortho_right, ortho_top, ortho_bottom; Color *rendering_background; /* Listeners */ @@ -50,7 +50,6 @@ void engine_set_rendering_background(Engine *engine, float r, float g, float void engine_set_rendering_background_c(Engine *engine, Color *color); void engine_set_window_title(Engine *engine, const char *title); void engine_set_rendering_listener(Engine *engine, void (*draw_frames)(void *data), void *data); -void engine_draw_line(float x1, float y1, float x2, float y2); void engine_loop(void); void engine_input(void (*f_input)(int engine_input)); void engine_set_mouse_button_listener(void (*event)(float x, float y, void *data), void *data); |