#include <TerrainBuilder.h>
|
| | TerrainBuilder (bool skipLiquid) |
| |
| | ~TerrainBuilder () |
| |
| | TerrainBuilder (TerrainBuilder const &tb)=delete |
| |
| void | loadMap (uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData) |
| |
| bool | loadVMap (uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData) |
| |
| void | loadOffMeshConnections (uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData, char const *offMeshFilePath) |
| |
| bool | usesLiquids () const |
| |
|
| static void | transform (std::vector< G3D::Vector3 > &original, std::vector< G3D::Vector3 > &transformed, float scale, G3D::Matrix3 &rotation, G3D::Vector3 &position) |
| |
| static void | copyVertices (std::vector< G3D::Vector3 > &source, G3D::Array< float > &dest) |
| |
| static void | copyIndices (std::vector< VMAP::MeshTriangle > &source, G3D::Array< int > &dest, int offest, bool flip) |
| |
| static void | copyIndices (G3D::Array< int > &src, G3D::Array< int > &dest, int offset) |
| |
| static void | cleanVertices (G3D::Array< float > &verts, G3D::Array< int > &tris) |
| |
|
| bool | loadMap (uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData, Spot portion) |
| | Loads a portion of a map's terrain.
|
| |
| void | getLoopVars (Spot portion, int &loopStart, int &loopEnd, int &loopInc) |
| | Sets loop variables for selecting only certain parts of a map's terrain.
|
| |
| void | getHeightCoord (int index, Grid grid, float xOffset, float yOffset, float *coord, float *v) |
| | Get the vector coordinate for a specific position.
|
| |
| void | getHeightTriangle (int square, Spot triangle, int *indices, bool liquid=false) |
| | Get the triangle's vector indices for a specific position.
|
| |
| bool | isHole (int square, const uint16 holes[16][16]) |
| | Determines if the specific position's triangles should be rendered.
|
| |
| void | getLiquidCoord (int index, int index2, float xOffset, float yOffset, float *coord, float *v) |
| | Get the liquid vector coordinate for a specific position.
|
| |
| uint8 | getLiquidType (int square, const uint8 liquid_type[16][16]) |
| | Get the liquid type for a specific position.
|
| |
Definition at line 77 of file TerrainBuilder.h.
◆ TerrainBuilder() [1/2]
| MMAP::TerrainBuilder::TerrainBuilder |
( |
bool |
skipLiquid | ) |
|
◆ ~TerrainBuilder()
| MMAP::TerrainBuilder::~TerrainBuilder |
( |
| ) |
|
◆ TerrainBuilder() [2/2]
◆ cleanVertices()
| void MMAP::TerrainBuilder::cleanVertices |
( |
G3D::Array< float > & |
verts, |
|
|
G3D::Array< int > & |
tris |
|
) |
| |
|
static |
◆ copyIndices() [1/2]
| void MMAP::TerrainBuilder::copyIndices |
( |
G3D::Array< int > & |
src, |
|
|
G3D::Array< int > & |
dest, |
|
|
int |
offset |
|
) |
| |
|
static |
◆ copyIndices() [2/2]
| void MMAP::TerrainBuilder::copyIndices |
( |
std::vector< VMAP::MeshTriangle > & |
source, |
|
|
G3D::Array< int > & |
dest, |
|
|
int |
offest, |
|
|
bool |
flip |
|
) |
| |
|
static |
◆ copyVertices()
| void MMAP::TerrainBuilder::copyVertices |
( |
std::vector< G3D::Vector3 > & |
source, |
|
|
G3D::Array< float > & |
dest |
|
) |
| |
|
static |
◆ getHeightCoord()
| void MMAP::TerrainBuilder::getHeightCoord |
( |
int |
index, |
|
|
Grid |
grid, |
|
|
float |
xOffset, |
|
|
float |
yOffset, |
|
|
float * |
coord, |
|
|
float * |
v |
|
) |
| |
|
private |
◆ getHeightTriangle()
| void MMAP::TerrainBuilder::getHeightTriangle |
( |
int |
square, |
|
|
Spot |
triangle, |
|
|
int * |
indices, |
|
|
bool |
liquid = false |
|
) |
| |
|
private |
Get the triangle's vector indices for a specific position.
Definition at line 550 of file TerrainBuilder.cpp.
◆ getLiquidCoord()
| void MMAP::TerrainBuilder::getLiquidCoord |
( |
int |
index, |
|
|
int |
index2, |
|
|
float |
xOffset, |
|
|
float |
yOffset, |
|
|
float * |
coord, |
|
|
float * |
v |
|
) |
| |
|
private |
Get the liquid vector coordinate for a specific position.
Definition at line 597 of file TerrainBuilder.cpp.
◆ getLiquidType()
| uint8 MMAP::TerrainBuilder::getLiquidType |
( |
int |
square, |
|
|
const uint8 |
liquid_type[16][16] |
|
) |
| |
|
private |
◆ getLoopVars()
| void MMAP::TerrainBuilder::getLoopVars |
( |
Spot |
portion, |
|
|
int & |
loopStart, |
|
|
int & |
loopEnd, |
|
|
int & |
loopInc |
|
) |
| |
|
private |
Sets loop variables for selecting only certain parts of a map's terrain.
Definition at line 92 of file TerrainBuilder.cpp.
◆ isHole()
| bool MMAP::TerrainBuilder::isHole |
( |
int |
square, |
|
|
const uint16 |
holes[16][16] |
|
) |
| |
|
private |
Determines if the specific position's triangles should be rendered.
Definition at line 610 of file TerrainBuilder.cpp.
◆ loadMap() [1/2]
◆ loadMap() [2/2]
◆ loadOffMeshConnections()
| void MMAP::TerrainBuilder::loadOffMeshConnections |
( |
uint32 |
mapID, |
|
|
uint32 |
tileX, |
|
|
uint32 |
tileY, |
|
|
MeshData & |
meshData, |
|
|
char const * |
offMeshFilePath |
|
) |
| |
◆ loadVMap()
◆ transform()
| void MMAP::TerrainBuilder::transform |
( |
std::vector< G3D::Vector3 > & |
original, |
|
|
std::vector< G3D::Vector3 > & |
transformed, |
|
|
float |
scale, |
|
|
G3D::Matrix3 & |
rotation, |
|
|
G3D::Vector3 & |
position |
|
) |
| |
|
static |
◆ usesLiquids()
| bool MMAP::TerrainBuilder::usesLiquids |
( |
| ) |
const |
|
inline |
◆ m_skipLiquid
| bool MMAP::TerrainBuilder::m_skipLiquid |
|
private |
The documentation for this class was generated from the following files: