updated drawmodes and rendering

DebugDraw for recast now caches the results
We now have a drawmode dropdown selector
drawmode changes come from the gui itself no longer from console values
all recast drawmodes are supported with the exception of drawmodes that add abilities like navqueries until the nav tester tool is imlpemented.
This commit is contained in:
marauder2k7 2025-07-24 14:25:02 +01:00
parent 30b9502e90
commit d1771756c2
12 changed files with 548 additions and 53 deletions

View file

@ -61,6 +61,8 @@ public:
U32 getVertCount() const;
const F32 *getVerts() const;
const F32* getNormals() const;
U32 getTriCount() const;
const S32 *getTris() const;
@ -85,6 +87,13 @@ protected:
/// Size of vertex array.
U32 vertcap;
// Number of normals defined.
U32 nnormals;
// Array of normals (xyz in float array)
F32* normals;
// Size of normal array (matches verts)
U32 normalcap;
/// Number of triangles defined.
U32 ntris;
/// Array of triangle vertex indices. Size ntris*3