19 #ifndef RECASTSAMPLETILEMESH_H
20 #define RECASTSAMPLETILEMESH_H
78 unsigned char*
buildTileMesh(
const int tx,
const int ty,
const float* bmin,
const float* bmax,
int& dataSize);
98 void getTilePos(
const float* pos,
int& tx,
int& ty);
Definition: Sample_TileMesh.h:28
float m_lastBuiltTileBmin[3]
Definition: Sample_TileMesh.h:72
float m_totalBuildTimeMs
Definition: Sample_TileMesh.h:32
float m_tileMemUsage
Definition: Sample_TileMesh.h:75
virtual void handleRenderOverlay(double *proj, double *model, int *view)
Definition: Sample_TileMesh.cpp:549
rcHeightfield * m_solid
Definition: Sample_TileMesh.h:35
virtual bool handleBuild()
Definition: Sample_TileMesh.cpp:589
DrawMode
Definition: Sample_TileMesh.h:43
@ DRAWMODE_REGION_CONNECTIONS
Definition: Sample_TileMesh.h:56
@ DRAWMODE_NAVMESH_PORTALS
Definition: Sample_TileMesh.h:48
@ DRAWMODE_NAVMESH_BVTREE
Definition: Sample_TileMesh.h:46
@ DRAWMODE_NAVMESH_TRANS
Definition: Sample_TileMesh.h:45
@ DRAWMODE_CONTOURS
Definition: Sample_TileMesh.h:59
@ DRAWMODE_MESH
Definition: Sample_TileMesh.h:50
@ DRAWMODE_NAVMESH_NODES
Definition: Sample_TileMesh.h:47
@ DRAWMODE_COMPACT_DISTANCE
Definition: Sample_TileMesh.h:54
@ DRAWMODE_RAW_CONTOURS
Definition: Sample_TileMesh.h:57
@ DRAWMODE_VOXELS
Definition: Sample_TileMesh.h:51
@ DRAWMODE_NAVMESH
Definition: Sample_TileMesh.h:44
@ DRAWMODE_NAVMESH_INVIS
Definition: Sample_TileMesh.h:49
@ MAX_DRAWMODE
Definition: Sample_TileMesh.h:62
@ DRAWMODE_BOTH_CONTOURS
Definition: Sample_TileMesh.h:58
@ DRAWMODE_POLYMESH
Definition: Sample_TileMesh.h:60
@ DRAWMODE_COMPACT
Definition: Sample_TileMesh.h:53
@ DRAWMODE_POLYMESH_DETAIL
Definition: Sample_TileMesh.h:61
@ DRAWMODE_COMPACT_REGIONS
Definition: Sample_TileMesh.h:55
@ DRAWMODE_VOXELS_WALKABLE
Definition: Sample_TileMesh.h:52
virtual void handleTools()
Definition: Sample_TileMesh.cpp:300
void getTilePos(const float *pos, int &tx, int &ty)
Definition: Sample_TileMesh.cpp:688
Sample_TileMesh()
Definition: Sample_TileMesh.cpp:177
unsigned char * m_triareas
Definition: Sample_TileMesh.h:34
rcPolyMesh * m_pmesh
Definition: Sample_TileMesh.h:38
int m_maxPolysPerTile
Definition: Sample_TileMesh.h:68
virtual void handleSettings()
Definition: Sample_TileMesh.cpp:226
rcPolyMeshDetail * m_dmesh
Definition: Sample_TileMesh.h:39
rcCompactHeightfield * m_chf
Definition: Sample_TileMesh.h:36
virtual void handleRender()
Definition: Sample_TileMesh.cpp:421
void removeAllTiles()
Definition: Sample_TileMesh.cpp:775
void saveAll(const char *path, const dtNavMesh *mesh)
bool m_keepInterResults
Definition: Sample_TileMesh.h:30
virtual void handleMeshChanged(class InputGeom *geom)
Definition: Sample_TileMesh.cpp:567
virtual void collectSettings(struct BuildSettings &settings)
Definition: Sample_TileMesh.cpp:639
virtual ~Sample_TileMesh()
Definition: Sample_TileMesh.cpp:203
rcContourSet * m_cset
Definition: Sample_TileMesh.h:37
rcConfig m_cfg
Definition: Sample_TileMesh.h:40
void buildTile(const float *pos)
Definition: Sample_TileMesh.cpp:646
unsigned int m_tileCol
Definition: Sample_TileMesh.h:71
void cleanup()
Definition: Sample_TileMesh.cpp:210
dtNavMesh * loadAll(const char *path)
bool m_buildAll
Definition: Sample_TileMesh.h:31
float m_tileBuildTime
Definition: Sample_TileMesh.h:74
void removeTile(const float *pos)
Definition: Sample_TileMesh.cpp:699
int m_tileTriCount
Definition: Sample_TileMesh.h:76
DrawMode m_drawMode
Definition: Sample_TileMesh.h:65
int m_maxTiles
Definition: Sample_TileMesh.h:67
virtual void handleDebugMode()
Definition: Sample_TileMesh.cpp:339
float m_lastBuiltTileBmax[3]
Definition: Sample_TileMesh.h:73
void buildAllTiles()
Definition: Sample_TileMesh.cpp:724
unsigned char * buildTileMesh(const int tx, const int ty, const float *bmin, const float *bmax, int &dataSize)
Definition: Sample_TileMesh.cpp:794
float m_tileSize
Definition: Sample_TileMesh.h:69
A navigation mesh based on tiles of convex polygons.
Definition: DetourNavMesh.h:339
Definition: InputGeom.h:35
A compact, static heightfield representing unobstructed space.
Definition: Recast.h:354
Specifies a configuration to use when performing Recast builds.
Definition: Recast.h:217
Represents a group of related contours.
Definition: Recast.h:433
A dynamic heightfield representing obstructed space.
Definition: Recast.h:313
Contains triangle meshes that represent detailed height data associated with the polygons in its asso...
Definition: Recast.h:487
Represents a polygon mesh suitable for use in building a navigation mesh.
Definition: Recast.h:457