Recast Navigation
Navigation-mesh Toolset for Games
|
#include <Sample_TileMesh.h>
Public Member Functions | |
Sample_TileMesh () | |
virtual | ~Sample_TileMesh () |
virtual void | handleSettings () |
virtual void | handleTools () |
virtual void | handleDebugMode () |
virtual void | handleRender () |
virtual void | handleRenderOverlay (double *proj, double *model, int *view) |
virtual void | handleMeshChanged (class InputGeom *geom) |
virtual bool | handleBuild () |
virtual void | collectSettings (struct BuildSettings &settings) |
void | getTilePos (const float *pos, int &tx, int &ty) |
void | buildTile (const float *pos) |
void | removeTile (const float *pos) |
void | buildAllTiles () |
void | removeAllTiles () |
Public Member Functions inherited from Sample | |
Sample () | |
virtual | ~Sample () |
void | setContext (BuildContext *ctx) |
void | setTool (SampleTool *tool) |
SampleToolState * | getToolState (int type) |
void | setToolState (int type, SampleToolState *s) |
SampleDebugDraw & | getDebugDraw () |
virtual void | handleClick (const float *s, const float *p, bool shift) |
virtual void | handleToggle () |
virtual void | handleStep () |
virtual void | handleUpdate (const float dt) |
virtual class InputGeom * | getInputGeom () |
virtual class dtNavMesh * | getNavMesh () |
virtual class dtNavMeshQuery * | getNavMeshQuery () |
virtual class dtCrowd * | getCrowd () |
virtual float | getAgentRadius () |
virtual float | getAgentHeight () |
virtual float | getAgentClimb () |
unsigned char | getNavMeshDrawFlags () const |
void | setNavMeshDrawFlags (unsigned char flags) |
void | updateToolStates (const float dt) |
void | initToolStates (Sample *sample) |
void | resetToolStates () |
void | renderToolStates () |
void | renderOverlayToolStates (double *proj, double *model, int *view) |
void | resetCommonSettings () |
void | handleCommonSettings () |
Protected Member Functions | |
unsigned char * | buildTileMesh (const int tx, const int ty, const float *bmin, const float *bmax, int &dataSize) |
void | cleanup () |
void | saveAll (const char *path, const dtNavMesh *mesh) |
dtNavMesh * | loadAll (const char *path) |
Protected Member Functions inherited from Sample | |
dtNavMesh * | loadAll (const char *path) |
void | saveAll (const char *path, const dtNavMesh *mesh) |
|
protected |
Sample_TileMesh::Sample_TileMesh | ( | ) |
|
virtual |
void Sample_TileMesh::buildAllTiles | ( | ) |
void Sample_TileMesh::buildTile | ( | const float * | pos | ) |
|
protected |
|
protected |
|
virtual |
Reimplemented from Sample.
void Sample_TileMesh::getTilePos | ( | const float * | pos, |
int & | tx, | ||
int & | ty | ||
) |
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
virtual |
Reimplemented from Sample.
|
protected |
void Sample_TileMesh::removeAllTiles | ( | ) |
void Sample_TileMesh::removeTile | ( | const float * | pos | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |