Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Ai::NavMeshDebugRenderer Struct Reference
Inheritance diagram for Grindstone::Ai::NavMeshDebugRenderer:

Classes

struct  DebugVertex
struct  DrawCall

Public Member Functions

void Initialize ()
void Clear ()
void BuildVertexBuffers ()
virtual Grindstone::Renderer::RenderGraphBuilderResourceRef DrawRenderPass (Grindstone::Renderer::RenderGraphBuilder &rgBuilder, Grindstone::Renderer::RenderGraphBuilderResourceRef colorRef, Grindstone::Renderer::RenderGraphBuilderResourceRef depthRef)
virtual void depthMask (bool state) override
virtual void texture (bool state) override
virtual void begin (duDebugDrawPrimitives prim, float size=1.0f) override
virtual void vertex (const float *pos, unsigned int color) override
virtual void vertex (const float x, const float y, const float z, unsigned int color) override
virtual void vertex (const float *pos, unsigned int color, const float *uv) override
virtual void vertex (const float x, const float y, const float z, unsigned int color, const float u, const float v) override
virtual void end () override
 End drawing primitives.
virtual unsigned int areaToCol (unsigned int area) override
 Compute a color for given area.

Protected Attributes

Grindstone::AssetReference< Grindstone::GraphicsPipelineAssetnavmeshPipelineSet
Grindstone::GraphicsAPI::DescriptorSetnavmeshDescriptorSet = nullptr
Grindstone::GraphicsAPI::BuffervertexBuffer = nullptr
Grindstone::GraphicsAPI::VertexInputLayout vertexLayout
std::vector< DebugVertexvertices
std::vector< DrawCalldrawCalls
DrawCallcurrentCall = nullptr
bool isDepthTestEnabled = true
bool isTextured = false

Member Function Documentation

◆ begin()

void Grindstone::Ai::NavMeshDebugRenderer::begin ( duDebugDrawPrimitives prim,
float size = 1.0f )
overridevirtual

Begin drawing primitives.

Parameters
prim[in] primitive type to draw, one of rcDebugDrawPrimitives.
size[in] size of a primitive, applies to point size and line width only.

◆ vertex() [1/4]

void Grindstone::Ai::NavMeshDebugRenderer::vertex ( const float * pos,
unsigned int color )
overridevirtual

Submit a vertex

Parameters
pos[in] position of the verts.
color[in] color of the verts.

◆ vertex() [2/4]

void Grindstone::Ai::NavMeshDebugRenderer::vertex ( const float * pos,
unsigned int color,
const float * uv )
overridevirtual

Submit a vertex

Parameters
pos[in] position of the verts.
color[in] color of the verts.
uv[in] the uv coordinates of the verts.

◆ vertex() [3/4]

void Grindstone::Ai::NavMeshDebugRenderer::vertex ( const float x,
const float y,
const float z,
unsigned int color )
overridevirtual

Submit a vertex

Parameters
x,y,z[in] position of the verts.
color[in] color of the verts.

◆ vertex() [4/4]

void Grindstone::Ai::NavMeshDebugRenderer::vertex ( const float x,
const float y,
const float z,
unsigned int color,
const float u,
const float v )
overridevirtual

Submit a vertex

Parameters
x,y,z[in] position of the verts.
color[in] color of the verts.
u,v[in] the uv coordinates of the verts.

The documentation for this struct was generated from the following files:
  • /github/workspace/plugins/Grindstone.Ai.NavMesh/include/NavMeshDebugRenderer.hpp
  • /github/workspace/plugins/Grindstone.Ai.NavMesh/source/NavMeshDebugRenderer.cpp