Radium Engine  1.5.0
Ra::Engine::Rendering::DebugRender Class Referencefinal

#include <Engine/Rendering/DebugRender.hpp>

+ Collaboration diagram for Ra::Engine::Rendering::DebugRender:

Public Member Functions

void initialize ()
 
void render (const Core::Matrix4 &view, const Core::Matrix4 &proj)
 
void addLine (const Core::Vector3 &from, const Core::Vector3 &to, const Core::Utils::Color &color)
 
void addPoint (const Core::Vector3 &p, const Core::Utils::Color &color)
 
void addPoints (const Core::Vector3Array &p, const Core::Utils::Color &color)
 
void addPoints (const Core::Vector3Array &p, const Core::Vector4Array &colors)
 
void addMesh (const std::shared_ptr< Data::AttribArrayDisplayable > &mesh, const Core::Transform &transform=Core::Transform::Identity())
 
void addCross (const Core::Vector3 &position, Scalar size, const Core::Utils::Color &color)
 
void addSphere (const Core::Vector3 &center, Scalar radius, const Core::Utils::Color &color)
 
void addCircle (const Core::Vector3 &center, const Core::Vector3 &normal, Scalar radius, const Core::Utils::Color &color)
 
void addFrame (const Core::Transform &transform, Scalar size)
 
void addTriangle (const Core::Vector3 &p0, const Core::Vector3 &p1, const Core::Vector3 &p2, const Core::Utils::Color &color)
 
void addAABB (const Core::Aabb &box, const Core::Utils::Color &color)
 
void addOBB (const Core::Aabb &box, const Core::Transform &transform, const Core::Utils::Color &color)
 

Detailed Description

This allow to draw debug objects.

Todo:
: port this to a more Radium-style code

Definition at line 26 of file DebugRender.hpp.

Member Function Documentation

◆ initialize()

void Ra::Engine::Rendering::DebugRender::initialize ( )

FIXME : this was not ported to globject ...

Todo:
FIXED but not tested

Definition at line 30 of file DebugRender.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: