template<UnsignedInt dimensions>
Magnum::DebugTools::ObjectRenderer class

Object renderer.

Visualizes object position, rotation and scale using colored axes. See Debug renderers for more information.

Basic usage

Example code:

DebugTools::ResourceManager manager;
SceneGraph::DrawableGroup3D debugDrawables;

// Create some options
manager.set("my", DebugTools::ObjectRendererOptions{}.setSize(0.3f));

// Create debug renderer for given object, use "my" options for it
new DebugTools::ObjectRenderer3D{manager, *object, "my", &debugDrawables};

Base classes

template<UnsignedInt dimensions, class T>
class Magnum::SceneGraph::Drawable<dimensions, Float>
Drawable.

Constructors, destructors, conversion operators

ObjectRenderer(ResourceManager& manager, SceneGraph::AbstractObject<dimensions, Float>& object, ResourceKey options = ResourceKey(), SceneGraph::DrawableGroup<dimensions, Float>* drawables = nullptr) explicit
Constructor.
ObjectRenderer(SceneGraph::AbstractObject<dimensions, Float>& object, ResourceKey options = ResourceKey(), SceneGraph::DrawableGroup<dimensions, Float>* drawables = nullptr) deprecated in 2019.10 explicit
Constructor.

Function documentation

template<UnsignedInt dimensions>
Magnum::DebugTools::ObjectRenderer<dimensions>::ObjectRenderer(ResourceManager& manager, SceneGraph::AbstractObject<dimensions, Float>& object, ResourceKey options = ResourceKey(), SceneGraph::DrawableGroup<dimensions, Float>* drawables = nullptr) explicit

Constructor.

Parameters
manager Resource manager instance
object Object for which to create debug renderer
options Options resource key. See class documentation for more information.
drawables Drawable group

The renderer is automatically added to object's features.

template<UnsignedInt dimensions>
Magnum::DebugTools::ObjectRenderer<dimensions>::ObjectRenderer(SceneGraph::AbstractObject<dimensions, Float>& object, ResourceKey options = ResourceKey(), SceneGraph::DrawableGroup<dimensions, Float>* drawables = nullptr) explicit

Constructor.