aboutsummaryrefslogtreecommitdiff
path: root/08-august/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to '08-august/src/game.h')
-rw-r--r--08-august/src/game.h46
1 files changed, 46 insertions, 0 deletions
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