Level H Engine
|
Go to the source code of this file.
Namespaces | |
Heightmap | |
Generates a mesh using a Heightmap for use with a renderer. | |
Functions | |
void | Heightmap::initaliseHeightmap (std::string mapFileLocation, std::vector< float > &vertices, std::vector< float > &vertexNormals, std::vector< float > &vertexTextures, std::vector< unsigned int > &indices) |
Initalises a heightmap. More... | |
Uint32 | Heightmap::getPixel (int x, int y, uint8_t bpp, SDL_Surface *map) |
A function to get a pixel from a map. More... | |
Vec3 | Heightmap::getNormal (Vec3 a, Vec3 b, Vec3 c) |
A function to get a normal from 3 vectors. More... | |