Nebula
Loading...
Searching...
No Matches
detourdebug.h
Go to the documentation of this file.
1#include "DebugDraw.h"
2#include "util/array.h"
3#include "math/vector.h"
5
6
7namespace Navigation
8{
9
10struct DebugDraw : public duDebugDraw
11{
12DebugDraw();
13virtual ~DebugDraw(){}
14
15virtual void depthMask(bool state);
16
17virtual void texture(bool state){}
18
22virtual void begin(duDebugDrawPrimitives prim, float size = 1.0f) ;
23
27virtual void vertex(const float* pos, unsigned int color) ;
28
32virtual void vertex(const float x, const float y, const float z, unsigned int color) ;
33
37virtual void vertex(const float* pos, unsigned int color, const float* uv) ;
38
42virtual void vertex(const float x, const float y, const float z, unsigned int color, const float u, const float v) ;
43
45virtual void end() ;
46
47private:
48 duDebugDrawPrimitives current;
51
52};
53
54}
RenderFlag
Definition rendershape.h:52
Nebula's dynamic array class.
Definition array.h:60
Navigation::Recast.
Definition detourdebug.cc:9
Vulkan::GraphicsDeviceState state
virtual ~DebugDraw()
Definition detourdebug.h:13
virtual void vertex(const float *pos, unsigned int color)
Submit a vertex.
Definition detourdebug.cc:44
CoreGraphics::RenderShape::RenderFlag flag
Definition detourdebug.h:50
virtual void end()
End drawing primitives.
Definition detourdebug.cc:85
virtual void begin(duDebugDrawPrimitives prim, float size=1.0f)
Begin drawing primitives.
Definition detourdebug.cc:37
DebugDraw()
Definition detourdebug.cc:15
virtual void depthMask(bool state)
Definition detourdebug.cc:24
Util::Array< CoreGraphics::RenderShape::RenderShapeVertex > points
Definition detourdebug.h:49
virtual void texture(bool state)
Definition detourdebug.h:17
duDebugDrawPrimitives current
Definition detourdebug.h:48