Radium Engine  1.5.20
Loading...
Searching...
No Matches
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

◆ addAABB()

void Ra::Engine::Rendering::DebugRender::addAABB ( const Core::Aabb & box,
const Core::Utils::Color & color )

Definition at line 320 of file DebugRender.cpp.

◆ addCircle()

void Ra::Engine::Rendering::DebugRender::addCircle ( const Core::Vector3 & center,
const Core::Vector3 & normal,
Scalar radius,
const Core::Utils::Color & color )

Definition at line 302 of file DebugRender.cpp.

◆ addCross()

void Ra::Engine::Rendering::DebugRender::addCross ( const Core::Vector3 & position,
Scalar size,
const Core::Utils::Color & color )

Definition at line 281 of file DebugRender.cpp.

◆ addFrame()

void Ra::Engine::Rendering::DebugRender::addFrame ( const Core::Transform & transform,
Scalar size )

Definition at line 309 of file DebugRender.cpp.

◆ addLine()

void Ra::Engine::Rendering::DebugRender::addLine ( const Core::Vector3 & from,
const Core::Vector3 & to,
const Core::Utils::Color & color )

Definition at line 252 of file DebugRender.cpp.

◆ addMesh()

void Ra::Engine::Rendering::DebugRender::addMesh ( const std::shared_ptr< Data::AttribArrayDisplayable > & mesh,
const Core::Transform & transform = Core::Transform::Identity() )

Definition at line 276 of file DebugRender.cpp.

◆ addOBB()

void Ra::Engine::Rendering::DebugRender::addOBB ( const Core::Aabb & box,
const Core::Transform & transform,
const Core::Utils::Color & color )

Definition at line 324 of file DebugRender.cpp.

◆ addPoint()

void Ra::Engine::Rendering::DebugRender::addPoint ( const Core::Vector3 & p,
const Core::Utils::Color & color )

Definition at line 259 of file DebugRender.cpp.

◆ addPoints() [1/2]

void Ra::Engine::Rendering::DebugRender::addPoints ( const Core::Vector3Array & p,
const Core::Utils::Color & color )

Definition at line 263 of file DebugRender.cpp.

◆ addPoints() [2/2]

void Ra::Engine::Rendering::DebugRender::addPoints ( const Core::Vector3Array & p,
const Core::Vector4Array & colors )

Definition at line 269 of file DebugRender.cpp.

◆ addSphere()

void Ra::Engine::Rendering::DebugRender::addSphere ( const Core::Vector3 & center,
Scalar radius,
const Core::Utils::Color & color )

Definition at line 296 of file DebugRender.cpp.

◆ addTriangle()

void Ra::Engine::Rendering::DebugRender::addTriangle ( const Core::Vector3 & p0,
const Core::Vector3 & p1,
const Core::Vector3 & p2,
const Core::Utils::Color & color )

Definition at line 313 of file DebugRender.cpp.

◆ 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:

◆ render()

void Ra::Engine::Rendering::DebugRender::render ( const Core::Matrix4 & view,
const Core::Matrix4 & proj )

Definition at line 133 of file DebugRender.cpp.


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