aboutsummaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
Diffstat (limited to 'all.h')
-rw-r--r--all.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/all.h b/all.h
index 048750a..6c17f7f 100644
--- a/all.h
+++ b/all.h
@@ -82,7 +82,14 @@ typedef enum {
82 MOVE_FLY 82 MOVE_FLY
83} MovementMode; 83} MovementMode;
84 84
85typedef enum {
86 STATE_TITLE,
87 STATE_PLAYING
88} GameStateMode;
89
85typedef struct { 90typedef struct {
91 GameStateMode mode;
92 char map_path[256];
86 Camera camera; 93 Camera camera;
87 Model *world_models; 94 Model *world_models;
88 int world_model_count; 95 int world_model_count;
@@ -124,7 +131,8 @@ Vector2 GetUV(Vector3 p, MapPlane *mp, Plane plane);
124 131
125// Game 132// Game
126Texture2D GetTexture(const char *name); 133Texture2D GetTexture(const char *name);
127void InitGame(const char *map_path); 134void InitGame(void);
135void SetMap(const char *path);
128void UpdateGame(void); 136void UpdateGame(void);
129void DrawGame(void); 137void DrawGame(void);
130bool LoadMap(const char *filename); 138bool LoadMap(const char *filename);