| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#ifndef RECASTSAMPLEDEBUG_H |
| 20 |
#define RECASTSAMPLEDEBUG_H |
| 21 |
|
| 22 |
#include "Sample.h" |
| 23 |
#include "DetourNavMesh.h" |
| 24 |
#include "Recast.h" |
| 25 |
|
| 26 |
|
| 27 |
class Sample_Debug : public Sample |
| 28 |
{ |
| 29 |
protected: |
| 30 |
rcCompactHeightfield* m_chf; |
| 31 |
rcContourSet* m_cset; |
| 32 |
rcPolyMesh* m_pmesh; |
| 33 |
|
| 34 |
float m_halfExtents[3]; |
| 35 |
float m_center[3]; |
| 36 |
float m_bmin[3], m_bmax[3]; |
| 37 |
dtPolyRef m_ref; |
| 38 |
|
| 39 |
public: |
| 40 |
Sample_Debug(); |
| 41 |
virtual ~Sample_Debug(); |
| 42 |
|
| 43 |
virtual void handleSettings(); |
| 44 |
virtual void handleTools(); |
| 45 |
virtual void handleDebugMode(); |
| 46 |
virtual void handleClick(const float* s, const float* p, bool shift); |
| 47 |
virtual void handleToggle(); |
| 48 |
virtual void handleRender(); |
| 49 |
virtual void handleRenderOverlay(double* proj, double* model, int* view); |
| 50 |
virtual void handleMeshChanged(class InputGeom* geom); |
| 51 |
virtual bool handleBuild(); |
| 52 |
|
| 53 |
virtual const float* getBoundsMin(); |
| 54 |
virtual const float* getBoundsMax(); |
| 55 |
|
| 56 |
private: |
| 57 |
|
| 58 |
Sample_Debug(const Sample_Debug&); |
| 59 |
Sample_Debug& operator=(const Sample_Debug&); |
| 60 |
}; |
| 61 |
|
| 62 |
|
| 63 |
#endif |