diff options
Diffstat (limited to 'code/game_main.h')
-rw-r--r-- | code/game_main.h | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/code/game_main.h b/code/game_main.h index 91c3054..2194e27 100644 --- a/code/game_main.h +++ b/code/game_main.h @@ -6,40 +6,26 @@ #define GB(b) (((u64)1024)*(MB(b))) typedef struct GameInput { - r32 LastMouseX; - r32 LastMouseY; - r64 MouseX; - r64 MouseY; - r32 Sensitivity; + f32 LastMouseX; + f32 LastMouseY; + f64 MouseX; + f64 MouseY; + f32 Sensitivity; } GameInput; typedef struct GameCamera { - r32 MoveSpeed; - r32 PitchAngle; - r32 YawAngle; + f32 MoveSpeed; + f32 PitchAngle; + f32 YawAngle; Vec3 Pos; Vec3 Front; Vec3 Up; } GameCamera; -typedef struct BufferO { - u32 VAO; // Vertex Array Object - u32 VBO; // Vertex Buffer Object - u32 EBO; // Element Buffer Object - u32 TexO; // Texture Buffer Object -} BufferO; - -typedef struct Texture2D { - i32 width; - i32 height; - i32 nrChannels; - unsigned char* data; -} Texture2D; - typedef struct GameMemory { void *PermanentStorage; u64 PermanentStorageSize; - DebugArena Arena; + amr_DebugArena Arena; } GameMemory; typedef struct Rect2 { @@ -52,8 +38,8 @@ typedef struct debug_font_details { i32 lsb; i32 x0, y0, x1, y1; i32 kern; - r32 lx; - r32 ly; + f32 lx; + f32 ly; i32 byte_offset; i32 baseline; } debug_font_details; |