18 #ifndef __H__OCULAR_GRAPHICS_DEBUG__H__
19 #define __H__OCULAR_GRAPHICS_DEBUG__H__
21 #include "Math/Vector3.hpp"
22 #include "Math/Color.hpp"
23 #include "Math/Transform.hpp"
100 void removeDeadShapes();
Mesh * mesh
Shape's mesh to render.
Definition: DebugGraphics.hpp:49
uint64_t creationTime
Time that the shape was created.
Definition: DebugGraphics.hpp:53
Math::Transform m_Transform
Default identity transform to render all debug shapes with.
Definition: DebugGraphics.hpp:106
uint64_t lifetime
Amount of time (in ms) that the shape should persist.
Definition: DebugGraphics.hpp:54
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
std::vector< DebugShape > m_DebugShapes
Container of all debug shapes to draw.
Definition: DebugGraphics.hpp:108
void render()
Definition: DebugGraphics.cpp:164
Definition: DebugGraphics.hpp:47
Combination of a VertexBuffer and IndexBuffer.
Definition: Mesh.hpp:49
Draws debug graphics such as lines, points, bounding volumes, axis, etc.
Definition: DebugGraphics.hpp:61
Core::Color color
Color to render the shape with.
Definition: DebugGraphics.hpp:51
Material * m_Material
Flat shader material used to render all debug shapes.
Definition: DebugGraphics.hpp:104
void addLine(Math::Vector3f const &start, Math::Vector3f const &stop, Core::Color const &color, uint64_t lifetime)
Definition: DebugGraphics.cpp:54
void addCircle(Math::Vector3f const ¢er, float radius, Math::Vector3f const &normal, Core::Color const &color, uint32_t segments, uint64_t lifetime)
Definition: DebugGraphics.cpp:95
Definition: Material.hpp:62