diff options
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..d843094 --- /dev/null +++ b/src/world.h @@ -0,0 +1,24 @@ +#include "utils.h" +#include "assets.h" + +// This file is likely completely change. + +#ifndef WORLD_H +#define WORLD_H + +typedef struct { + Vector3 size; + Model heightmap; + const Image* image; + Color* heightmapColors; +} World; + +World createWorld(const Assets* assets); +void updateWorld(World* world, Game* game); +void freeWorld(World world); +// Dam, I wanta live in a free world ): + +float getWorldPixelHeight(World world, int x, int y); +float getWorldHeightAtLocation(World world, int x, int y); + +#endif |