18#ifndef INCLUDED_DEBUGRENDERER
19#define INCLUDED_DEBUGRENDERER
25#include <unordered_map>
47 const CColor& color,
const float width,
const bool depthTestEnabled =
true);
48 void DrawLine(
const std::vector<CVector3D>& line,
49 const CColor& color,
const float width,
const bool depthTestEnabled =
true);
77 const CStrIntern name,
const CColor& color,
const bool depthTestEnabled =
true,
78 const bool wireframe =
false);
95 std::unordered_map<ShaderTechniqueKey, CShaderTechniquePtr, ShaderTechniqueKeyHash, ShaderTechniqueKeyEqual>
std::shared_ptr< CShaderTechnique > CShaderTechniquePtr
Definition: ShaderTechniquePtr.h:28
Definition: BoundingBoxAligned.h:34
Class CBrush: Represents a convex object, supports some CSG operations.
Definition: Brush.h:38
Definition: DebugRenderer.h:39
std::unordered_map< ShaderTechniqueKey, CShaderTechniquePtr, ShaderTechniqueKeyHash, ShaderTechniqueKeyEqual > m_ShaderTechniqueMapping
Definition: DebugRenderer.h:96
void DrawLine(const CVector3D &from, const CVector3D &to, const CColor &color, const float width, const bool depthTestEnabled=true)
Render the line in world space.
Definition: DebugRenderer.cpp:48
void Initialize()
Definition: DebugRenderer.cpp:38
Renderer::Backend::IVertexInputLayout * m_VertexInputLayout
Definition: DebugRenderer.h:98
void DrawBrush(const CBrush &brush, const CColor &color, bool wireframe=false)
Render the surfaces of the brush as triangles.
Definition: DebugRenderer.cpp:333
const CShaderTechniquePtr & GetShaderTechnique(const CStrIntern name, const CColor &color, const bool depthTestEnabled=true, const bool wireframe=false)
Definition: DebugRenderer.cpp:406
void DrawCameraFrustum(const CCamera &camera, const CColor &color, int intermediates=0, bool wireframe=false)
Render: Renders the camera's frustum in world space.
Definition: DebugRenderer.cpp:175
void DrawBoundingBox(const CBoundingBoxAligned &boundingBox, const CColor &color, bool wireframe=false)
Render the surfaces of the bound box as triangles.
Definition: DebugRenderer.cpp:274
void DrawCircle(const CVector3D &origin, const float radius, const CColor &color)
Render the circle in world space oriented to the view camera.
Definition: DebugRenderer.cpp:121
Definition: Matrix3D.h:34
Interned 8-bit strings.
Definition: CStrIntern.h:38
Definition: Vector3D.h:31
Definition: DebugRenderer.h:92
bool operator()(const ShaderTechniqueKey &lhs, const ShaderTechniqueKey &rhs) const
Definition: DebugRenderer.cpp:397
Definition: DebugRenderer.h:88
size_t operator()(const ShaderTechniqueKey &key) const
Definition: DebugRenderer.cpp:386
Definition: DebugRenderer.h:81
bool transparent
Definition: DebugRenderer.h:83
bool depthTestEnabled
Definition: DebugRenderer.h:84
bool wireframe
Definition: DebugRenderer.h:85
CStrIntern name
Definition: DebugRenderer.h:82
pthread_key_t key
Definition: wpthread.cpp:140