diff options
author | nathan <nathansmith@disroot.org> | 2025-07-06 07:54:28 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-06 07:54:28 +0000 |
commit | 404d0f1bdf95d5951bf2a5e77dca2f9dc18f373e (patch) | |
tree | db78303dc890b589696770ad713e801e6e713abf /src/world.h | |
parent | 025655dcf21ec40f1730097d3614114c704f5a17 (diff) | |
download | FindThings-404d0f1bdf95d5951bf2a5e77dca2f9dc18f373e.tar.gz FindThings-404d0f1bdf95d5951bf2a5e77dca2f9dc18f373e.tar.bz2 FindThings-404d0f1bdf95d5951bf2a5e77dca2f9dc18f373e.zip |
Cleaned up shit
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 |