#include <TerrainBuilder.h>
|
| TerrainBuilder (bool skipLiquid) |
|
| ~TerrainBuilder () |
|
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, std::vector< OffMeshData > const &offMeshConnections) |
|
bool | usesLiquids () const |
|
|
static void | transform (std::vector< G3D::Vector3 > const &source, std::vector< G3D::Vector3 > &transformed, float scale, G3D::Matrix3 const &rotation, G3D::Vector3 const &position) |
|
static void | copyVertices (std::vector< G3D::Vector3 > const &source, G3D::Array< float > &dest) |
|
static void | copyIndices (std::vector< VMAP::MeshTriangle > const &source, G3D::Array< int > &dest, int offset, bool flip) |
|
static void | copyIndices (G3D::Array< int > const &source, 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. More...
|
|
void | getLoopVars (Spot portion, int &loopStart, int &loopEnd, int &loopInc) |
| Sets loop variables for selecting only certain parts of a map's terrain. More...
|
|
bool | loadHeightMap (uint32 mapID, uint32 tileX, uint32 tileY, G3D::Array< float > &vertices, G3D::Array< int > &triangles, Spot portion) |
| Load the map terrain from file. More...
|
|
void | getHeightCoord (int index, Grid grid, float xOffset, float yOffset, float *coord, float *v) |
| Get the vector coordinate for a specific position. More...
|
|
void | getHeightTriangle (int square, Spot triangle, int *indices, bool liquid=false) |
| Get the triangle's vector indices for a specific position. More...
|
|
bool | isHole (int square, uint8 const holes[16][16][8]) |
| Determines if the specific position's triangles should be rendered. More...
|
|
void | getLiquidCoord (int index, int index2, float xOffset, float yOffset, float *coord, float *v) |
| Get the liquid vector coordinate for a specific position. More...
|
|
map_liquidHeaderTypeFlags | getLiquidType (int square, map_liquidHeaderTypeFlags const (&liquid_type)[16][16]) |
| Get the liquid type for a specific position. More...
|
|
| TerrainBuilder ()=delete |
|
| TerrainBuilder (TerrainBuilder const &tb)=delete |
|
Definition at line 91 of file TerrainBuilder.h.
◆ TerrainBuilder() [1/3]
MMAP::TerrainBuilder::TerrainBuilder |
( |
bool |
skipLiquid | ) |
|
◆ ~TerrainBuilder()
MMAP::TerrainBuilder::~TerrainBuilder |
( |
| ) |
|
◆ TerrainBuilder() [2/3]
MMAP::TerrainBuilder::TerrainBuilder |
( |
| ) |
|
|
privatedelete |
◆ TerrainBuilder() [3/3]
◆ cleanVertices()
void MMAP::TerrainBuilder::cleanVertices |
( |
G3D::Array< float > & |
verts, |
|
|
G3D::Array< int > & |
tris |
|
) |
| |
|
static |
◆ copyIndices() [1/2]
void MMAP::TerrainBuilder::copyIndices |
( |
G3D::Array< int > const & |
source, |
|
|
G3D::Array< int > & |
dest, |
|
|
int |
offset |
|
) |
| |
|
static |
◆ copyIndices() [2/2]
void MMAP::TerrainBuilder::copyIndices |
( |
std::vector< VMAP::MeshTriangle > const & |
source, |
|
|
G3D::Array< int > & |
dest, |
|
|
int |
offset, |
|
|
bool |
flip |
|
) |
| |
|
static |
◆ copyVertices()
void MMAP::TerrainBuilder::copyVertices |
( |
std::vector< G3D::Vector3 > const & |
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 505 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 552 of file TerrainBuilder.cpp.
◆ getLiquidType()
◆ 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 35 of file TerrainBuilder.cpp.
◆ isHole()
bool MMAP::TerrainBuilder::isHole |
( |
int |
square, |
|
|
uint8 const |
holes[16][16][8] |
|
) |
| |
|
private |
Determines if the specific position's triangles should be rendered.
Definition at line 562 of file TerrainBuilder.cpp.
◆ loadHeightMap()
bool MMAP::TerrainBuilder::loadHeightMap |
( |
uint32 |
mapID, |
|
|
uint32 |
tileX, |
|
|
uint32 |
tileY, |
|
|
G3D::Array< float > & |
vertices, |
|
|
G3D::Array< int > & |
triangles, |
|
|
Spot |
portion |
|
) |
| |
|
private |
Load the map terrain from file.
◆ loadMap() [1/2]
◆ loadMap() [2/2]
◆ loadOffMeshConnections()
◆ loadVMap()
◆ transform()
void MMAP::TerrainBuilder::transform |
( |
std::vector< G3D::Vector3 > const & |
source, |
|
|
std::vector< G3D::Vector3 > & |
transformed, |
|
|
float |
scale, |
|
|
G3D::Matrix3 const & |
rotation, |
|
|
G3D::Vector3 const & |
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: