From 6b8af9cf83851c075c6c9514b1deaa931c2b19a4 Mon Sep 17 00:00:00 2001 From: Thomas Guillermo Albers Raviola Date: Fri, 16 Jan 2026 23:02:32 +0100 Subject: Initial commit --- 08-august/src/game.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 08-august/src/game.h (limited to '08-august/src/game.h') diff --git a/08-august/src/game.h b/08-august/src/game.h new file mode 100644 index 0000000..611bd07 --- /dev/null +++ b/08-august/src/game.h @@ -0,0 +1,46 @@ +#ifndef GAME_H +#define GAME_H + +#include "camera.h" +#include "graphics/window.h" +#include "renderer/entity.h" +#include "player.h" +#include "terrain.h" +#include "texture.h" +#include "renderer/shape.h" +#include "graphics/shaders.h" +#include "renderer/skybox.h" + +typedef enum +{ + MENU, + RUNNING, + EXIT +}GameState_t; + +#define NUM_ENTITIES 1 + +#define WINDOW_WIDTH 1024 +#define WINDOW_HEIGHT 768 +#define WINDOW_ASPECT_RATIO ( (float)WINDOW_WIDTH / (float)WINDOW_HEIGHT ) + +typedef struct +{ + GameState_t gameState; + Shader_Layout shaderProgram, terrainProgram, skyboxProgram; + + entity_t ents[NUM_ENTITIES]; + shape_t *entsShape; + GLuint entsTexture; + GLuint normalMap; + GLuint defaultNormalMap; + terrain_t *terrain; + skybox_t sky; + + player_t player; + + camera_t camera; + window_t *window; +} game_t; + +#endif // GAME_H -- cgit v1.2.3