mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 22:24:33 +00:00
Updated recast to 1.5.1
This commit is contained in:
parent
630949514a
commit
c7e5b35744
55 changed files with 3277 additions and 1460 deletions
|
|
@ -1,23 +0,0 @@
|
|||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
|
||||
|
||||
SET(debugutils_SRCS
|
||||
Source/DebugDraw.cpp
|
||||
Source/DetourDebugDraw.cpp
|
||||
Source/RecastDebugDraw.cpp
|
||||
Source/RecastDump.cpp
|
||||
)
|
||||
|
||||
SET(debugutils_HDRS
|
||||
Include/DebugDraw.h
|
||||
Include/DetourDebugDraw.h
|
||||
Include/RecastDebugDraw.h
|
||||
Include/RecastDump.h
|
||||
)
|
||||
|
||||
INCLUDE_DIRECTORIES(Include
|
||||
../Detour/Include
|
||||
../DetourTileCache/Include
|
||||
../Recast/Include
|
||||
)
|
||||
|
||||
ADD_LIBRARY(DebugUtils ${debugutils_SRCS} ${debugutils_HDRS})
|
||||
|
|
@ -210,6 +210,10 @@ public:
|
|||
virtual void end();
|
||||
void clear();
|
||||
void draw(struct duDebugDraw* dd);
|
||||
private:
|
||||
// Explicitly disabled copy constructor and copy assignment operator.
|
||||
duDisplayList(const duDisplayList&);
|
||||
duDisplayList& operator=(const duDisplayList&);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -45,4 +45,4 @@ void duDebugDrawTileCacheContours(duDebugDraw* dd, const struct dtTileCacheConto
|
|||
void duDebugDrawTileCachePolyMesh(duDebugDraw* dd, const struct dtTileCachePolyMesh& lmesh,
|
||||
const float* orig, const float cs, const float ch);
|
||||
|
||||
#endif // DETOURDEBUGDRAW_H
|
||||
#endif // DETOURDEBUGDRAW_H
|
||||
|
|
|
|||
|
|
@ -33,10 +33,6 @@ void duDebugDrawHeightfieldLayer(duDebugDraw* dd, const struct rcHeightfieldLaye
|
|||
void duDebugDrawHeightfieldLayers(duDebugDraw* dd, const struct rcHeightfieldLayerSet& lset);
|
||||
void duDebugDrawHeightfieldLayersRegions(duDebugDraw* dd, const struct rcHeightfieldLayerSet& lset);
|
||||
|
||||
void duDebugDrawLayerContours(duDebugDraw* dd, const struct rcLayerContourSet& lcset);
|
||||
void duDebugDrawLayerPolyMesh(duDebugDraw* dd, const struct rcLayerPolyMesh& lmesh);
|
||||
|
||||
|
||||
void duDebugDrawRegionConnections(struct duDebugDraw* dd, const struct rcContourSet& cset, const float alpha = 1.0f);
|
||||
void duDebugDrawRawContours(struct duDebugDraw* dd, const struct rcContourSet& cset, const float alpha = 1.0f);
|
||||
void duDebugDrawContours(struct duDebugDraw* dd, const struct rcContourSet& cset, const float alpha = 1.0f);
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
//
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include "DebugDraw.h"
|
||||
#include "DetourMath.h"
|
||||
|
||||
|
||||
duDebugDraw::~duDebugDraw()
|
||||
|
|
@ -180,8 +180,8 @@ void duAppendCylinderWire(struct duDebugDraw* dd, float minx, float miny, float
|
|||
for (int i = 0; i < NUM_SEG; ++i)
|
||||
{
|
||||
const float a = (float)i/(float)NUM_SEG*DU_PI*2;
|
||||
dir[i*2] = cosf(a);
|
||||
dir[i*2+1] = sinf(a);
|
||||
dir[i*2] = dtMathCosf(a);
|
||||
dir[i*2+1] = dtMathSinf(a);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
//
|
||||
|
||||
#include <math.h>
|
||||
#include "DebugDraw.h"
|
||||
#include "DetourDebugDraw.h"
|
||||
#include "DetourNavMesh.h"
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ bool duReadCompactHeightfield(struct rcCompactHeightfield& chf, duFileIO* io)
|
|||
|
||||
io->read(&chf.walkableHeight, sizeof(chf.walkableHeight));
|
||||
io->read(&chf.walkableClimb, sizeof(chf.walkableClimb));
|
||||
io->write(&chf.borderSize, sizeof(chf.borderSize));
|
||||
io->read(&chf.borderSize, sizeof(chf.borderSize));
|
||||
|
||||
io->read(&chf.maxDistance, sizeof(chf.maxDistance));
|
||||
io->read(&chf.maxRegions, sizeof(chf.maxRegions));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue