Go to the source code of this file.
|
| void | writeVertex (std::ofstream &objFile, const Vertex &vertex) |
| | Writes a vertex to an OBJ file. More...
|
| |
| void | writeFace (std::ofstream &objFile, const int corner1, const int corner2, const int corner3) |
| | Writes a face to an OBJ file. More...
|
| |
| void | generateAreaObjs (const std::vector< std::vector< int >> &heightMap, const std::vector< std::vector< std::string >> &areaMap) |
| | Generates obj map for each area of the map. More...
|
| |
◆ WINDING_ORDER
| Enumerator |
|---|
| CLOCKWISE | |
| COUNTER_CLOCKWISE | |
◆ generateAreaObjs()
| void generateAreaObjs |
( |
const std::vector< std::vector< int >> & |
heightMap, |
|
|
const std::vector< std::vector< std::string >> & |
areaMap |
|
) |
| |
Generates obj map for each area of the map.
- Parameters
-
| heightMap | The height matrix of the map. |
| areaMap | The map of all the areas. |
◆ writeFace()
| void writeFace |
( |
std::ofstream & |
objFile, |
|
|
const int |
corner1, |
|
|
const int |
corner2, |
|
|
const int |
corner3 |
|
) |
| |
Writes a face to an OBJ file.
- Parameters
-
| objFile | |
| corner1 | |
| corner2 | |
| corner3 | |
◆ writeVertex()
| void writeVertex |
( |
std::ofstream & |
objFile, |
|
|
const Vertex & |
vertex |
|
) |
| |
Writes a vertex to an OBJ file.
- Parameters
-
◆ WINDING_ORDER