NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NavMeshDebugRenderer.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <cstdint>
9#include <memory>
10
11#include <glm/glm.hpp>
12
13namespace NoJob
14{
15 class NavMesh;
16 class Shader;
17 class VertexArray;
18 class VertexBuffer;
19
21 {
22 public:
24
25 void Build(const NavMesh& navMesh);
26
27 void Draw(
28 const glm::mat4& viewProjection,
29 const glm::vec4& color =
30 glm::vec4(
31 0.15f,
32 0.85f,
33 1.0f,
34 1.0f)) const;
35
36 void Clear();
37
38 std::uint32_t GetVertexCount() const
39 {
40 return m_VertexCount;
41 }
42
43 private:
44 std::shared_ptr<VertexArray> m_VertexArray;
45 std::shared_ptr<VertexBuffer> m_VertexBuffer;
46 std::shared_ptr<Shader> m_Shader;
47
48 std::uint32_t m_VertexCount = 0;
49 };
50}
void Build(const NavMesh &navMesh)
void Draw(const glm::mat4 &viewProjection, const glm::vec4 &color=glm::vec4(0.15f, 0.85f, 1.0f, 1.0f)) const
std::uint32_t GetVertexCount() const