From db606c460b8e06c5604e9cc033bdf9c8ba583330 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 9 Aug 2023 23:24:53 +0200 Subject: [PATCH] Add vector types --- src/engine.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine.c b/src/engine.c index 8cb18f7..aa8f582 100644 --- a/src/engine.c +++ b/src/engine.c @@ -21,6 +21,11 @@ struct ENGINE_COLOR { unsigned char r; unsigned char g; unsigned char b; unsigne // WINDOWS struct ENGINE_WINDOW { struct ENGINE_TEXTURE * texture; struct ENGINE_FRONTEND_WINDOW * fe_window; }; +// VECTORS +struct ENGINE_VECTOR_2D { float x; float y; }; +struct ENGINE_VECTOR_3D { float x; float y; float z; }; +struct ENGINE_VECTOR_TEX { int x; int y; }; + // EVENTS struct ENGINE_EVENT { char type; void * data; }; static char ENGINE_EVENT_TYPE_UNKNOWN = 0;