aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
blob: 6a214b6e22d746a56daeb3fd51d317a425e0baf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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, float x, float y);

#endif