5 #include "../Maths/Vec3.h" 21 std::vector<float> &vertexNormals, std::vector<float> &vertexTextures, std::vector<unsigned int> &indices);
31 Uint32
getPixel(
int x,
int y, uint8_t bpp, SDL_Surface* map);
Vec3 getNormal(Vec3 a, Vec3 b, Vec3 c)
A function to get a normal from 3 vectors.
Definition: Heightmap.cpp:144
Generates a mesh using a Heightmap for use with a renderer.
Definition: Heightmap.h:10
Contains the Vec3 structure with functions and overloaded operators.
Definition: Vec3.h:8
void initaliseHeightmap(std::string mapFileLocation, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures, std::vector< unsigned int > &indices)
Initalises a heightmap.
Definition: Heightmap.cpp:10
Uint32 getPixel(int x, int y, uint8_t bpp, SDL_Surface *map)
A function to get a pixel from a map.
Definition: Heightmap.cpp:112