65 virtual unsigned int areaToCol(
unsigned int area);
82 virtual void handleClick(
const float* s,
const float* p,
bool shift) = 0;
153 virtual void handleClick(
const float* s,
const float* p,
bool shift);
SamplePolyAreas
These are just sample areas to use consistent values across the samples.
Definition Sample.h:44
@ SAMPLE_POLYAREA_WATER
Definition Sample.h:46
@ SAMPLE_POLYAREA_DOOR
Definition Sample.h:48
@ SAMPLE_POLYAREA_GRASS
Definition Sample.h:49
@ SAMPLE_POLYAREA_JUMP
Definition Sample.h:50
@ SAMPLE_POLYAREA_ROAD
Definition Sample.h:47
@ SAMPLE_POLYAREA_GROUND
Definition Sample.h:45
SamplePartitionType
Definition Sample.h:69
@ SAMPLE_PARTITION_LAYERS
Definition Sample.h:72
@ SAMPLE_PARTITION_WATERSHED
Definition Sample.h:70
@ SAMPLE_PARTITION_MONOTONE
Definition Sample.h:71
SamplePolyFlags
Definition Sample.h:53
@ SAMPLE_POLYFLAGS_SWIM
Definition Sample.h:55
@ SAMPLE_POLYFLAGS_JUMP
Definition Sample.h:57
@ SAMPLE_POLYFLAGS_DISABLED
Definition Sample.h:58
@ SAMPLE_POLYFLAGS_WALK
Definition Sample.h:54
@ SAMPLE_POLYFLAGS_DOOR
Definition Sample.h:56
@ SAMPLE_POLYFLAGS_ALL
Definition Sample.h:59
SampleToolType
Tool types.
Definition Sample.h:28
@ TOOL_CONVEX_VOLUME
Definition Sample.h:36
@ TOOL_NAVMESH_TESTER
Definition Sample.h:33
@ TOOL_OFFMESH_CONNECTION
Definition Sample.h:35
@ TOOL_NAVMESH_PRUNE
Definition Sample.h:34
@ TOOL_CROWD
Definition Sample.h:37
@ TOOL_TILE_EDIT
Definition Sample.h:30
@ TOOL_TEMP_OBSTACLE
Definition Sample.h:32
@ TOOL_TILE_HIGHLIGHT
Definition Sample.h:31
@ TOOL_NONE
Definition Sample.h:29
@ MAX_TOOLS
Definition Sample.h:38
Recast build context.
Definition SampleInterfaces.h:31
OpenGL debug draw implementation.
Definition SampleInterfaces.h:66
virtual unsigned int areaToCol(unsigned int area)
Compute a color for given area.
Definition Sample.cpp:47
virtual void handleDebugMode()
Definition Sample.cpp:114
virtual void handleClick(const float *s, const float *p, bool shift)
Definition Sample.cpp:258
void setTool(SampleTool *tool)
Definition Sample.cpp:98
virtual void handleSettings()
Definition Sample.cpp:106
float m_cellSize
Definition Sample.h:109
void setNavMeshDrawFlags(unsigned char flags)
Definition Sample.h:172
unsigned char m_navMeshDrawFlags
Definition Sample.h:107
SampleToolState * getToolState(int type)
Definition Sample.h:145
float m_regionMergeSize
Definition Sample.h:116
unsigned char getNavMeshDrawFlags() const
Definition Sample.h:171
class dtNavMeshQuery * m_navQuery
Definition Sample.h:104
BuildContext * m_ctx
Definition Sample.h:131
SampleTool * m_tool
Definition Sample.h:128
void resetCommonSettings()
Definition Sample.cpp:179
void initToolStates(Sample *sample)
Definition Sample.cpp:298
void setToolState(int type, SampleToolState *s)
Definition Sample.h:146
virtual float getAgentRadius()
Definition Sample.h:167
void renderOverlayToolStates(double *proj, double *model, int *view)
Definition Sample.cpp:325
dtNavMesh * loadAll(const char *path)
Definition Sample.cpp:351
virtual void handleMeshChanged(class InputGeom *geom)
Definition Sample.cpp:136
Sample()
Definition Sample.cpp:68
virtual class dtNavMeshQuery * getNavMeshQuery()
Definition Sample.h:165
virtual void handleTools()
Definition Sample.cpp:110
class InputGeom * m_geom
Definition Sample.h:102
void saveAll(const char *path, const dtNavMesh *mesh)
Definition Sample.cpp:421
bool m_filterLedgeSpans
Definition Sample.h:125
bool m_filterLowHangingObstacles
Definition Sample.h:124
float m_regionMinSize
Definition Sample.h:115
float m_edgeMaxLen
Definition Sample.h:117
void updateToolStates(const float dt)
Definition Sample.cpp:289
virtual class dtCrowd * getCrowd()
Definition Sample.h:166
virtual void handleStep()
Definition Sample.cpp:270
virtual class dtNavMesh * getNavMesh()
Definition Sample.h:164
virtual float getAgentHeight()
Definition Sample.h:168
SampleToolState * m_toolStates[MAX_TOOLS]
Definition Sample.h:129
class dtNavMesh * m_navMesh
Definition Sample.h:103
void setContext(BuildContext *ctx)
Definition Sample.h:142
float m_agentMaxSlope
Definition Sample.h:114
int m_partitionType
Definition Sample.h:122
float m_detailSampleDist
Definition Sample.h:120
float m_detailSampleMaxError
Definition Sample.h:121
virtual void handleToggle()
Definition Sample.cpp:264
float m_edgeMaxError
Definition Sample.h:118
float m_cellHeight
Definition Sample.h:110
SampleDebugDraw & getDebugDraw()
Definition Sample.h:148
virtual void handleRenderOverlay(double *proj, double *model, int *view)
Definition Sample.cpp:132
virtual void collectSettings(struct BuildSettings &settings)
Definition Sample.cpp:160
SampleDebugDraw m_dd
Definition Sample.h:133
virtual class InputGeom * getInputGeom()
Definition Sample.h:163
class dtCrowd * m_crowd
Definition Sample.h:105
void resetToolStates()
Definition Sample.cpp:307
void handleCommonSettings()
Definition Sample.cpp:197
virtual void handleRender()
Definition Sample.cpp:118
bool m_filterWalkableLowHeightSpans
Definition Sample.h:126
float m_agentMaxClimb
Definition Sample.h:113
virtual void handleUpdate(const float dt)
Definition Sample.cpp:281
void renderToolStates()
Definition Sample.cpp:316
float m_agentRadius
Definition Sample.h:112
virtual float getAgentClimb()
Definition Sample.h:169
virtual ~Sample()
Definition Sample.cpp:88
virtual bool handleBuild()
Definition Sample.cpp:276
float m_vertsPerPoly
Definition Sample.h:119
float m_agentHeight
Definition Sample.h:111
Provides local steering behaviors for a group of agents.
Definition DetourCrowd.h:204
Provides the ability to perform pathfinding related queries against a navigation mesh.
Definition DetourNavMeshQuery.h:166
A navigation mesh based on tiles of convex polygons.
Definition DetourNavMesh.h:339
Definition InputGeom.h:35