summaryrefslogtreecommitdiff
path: root/prge_types.h
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-02-20 15:10:11 +0500
committerpryazha <pryadeiniv@mail.ru>2025-02-20 15:10:11 +0500
commit34821e9fefb0d7cbf9e72a2457b2901edbbe03bb (patch)
tree59ec69f7d19aa48091b3d39ad0dfd6b26bacb88b /prge_types.h
initial
Diffstat (limited to 'prge_types.h')
-rw-r--r--prge_types.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/prge_types.h b/prge_types.h
new file mode 100644
index 0000000..ff5b860
--- /dev/null
+++ b/prge_types.h
@@ -0,0 +1,50 @@
+#ifndef PRGE_TYPES_H
+#define PRGE_TYPES_H
+
+enum KeyState_Enum {
+ KeyState_RELEASE = 0,
+ KeyState_PRESS = 1
+};
+
+typedef struct {
+ enum KeyState_Enum last;
+ enum KeyState_Enum state;
+} Key;
+
+typedef struct {
+ V2 mouse_pos;
+ V2 last_mouse_pos;
+ V2 mouse_offset;
+ B32 first_mouse;
+
+ B32 is_running;
+
+ F32 dt;
+
+ Key move_right;
+ Key move_forward;
+ Key move_left;
+ Key move_backward;
+ Key move_up;
+ Key move_down;
+ Key jump;
+ Key action_right;
+ Key action_up;
+ Key action_left;
+ Key action_down;
+ Key exit;
+} Input;
+
+typedef struct {
+ V3 pos;
+} Vertex;
+
+typedef struct {
+ Vertex *verts;
+ U32 nverts;
+ U32 *indices;
+ U32 nindices;
+ U32 vao, vbo, ebo;
+} Mesh;
+
+#endif /* PRGE_TYPES_H */