diff options
author | talha <talha@talhaamir.xyz> | 2023-08-30 22:58:18 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2023-08-30 22:58:18 +0500 |
commit | 66e84eabf70a11d91abbbe8777b1746573a51bae (patch) | |
tree | 3cca9403bde6a97889353b439ec84af5c661d988 /code/game_main.h | |
parent | d980dcd2b66e4879989ce18291d044d5a4ffc902 (diff) |
Refactored files:
- moved memory arenas to memory files
- replaced r32 and r64 with f32 and f64
- prefixing internal libs with amr_
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; |