esp::gfx::MeshVisualizerDrawable class

Base classes

class Drawable
Drawable for use with DrawableGroup.

Constructors, destructors, conversion operators

MeshVisualizerDrawable(scene::SceneNode& node, Magnum::Shaders::MeshVisualizer3D& shader, Magnum::GL::Mesh& mesh, gfx::DrawableGroup* group) explicit
Constructor.

Protected functions

void draw(const Magnum::Matrix4& transformationMatrix, Magnum::SceneGraph::Camera3D& camera) override
Draw the object using given camera.

Protected variables

Magnum::Shaders::MeshVisualizer3D& shader_

Function documentation

esp::gfx::MeshVisualizerDrawable::MeshVisualizerDrawable(scene::SceneNode& node, Magnum::Shaders::MeshVisualizer3D& shader, Magnum::GL::Mesh& mesh, gfx::DrawableGroup* group) explicit

Constructor.

Parameters
node Node, to which the drawable is attached
shader Shader for the mesh visualizer
mesh Mesh to draw when on render.
group Drawable group this drawable will be added to.

void esp::gfx::MeshVisualizerDrawable::draw(const Magnum::Matrix4& transformationMatrix, Magnum::SceneGraph::Camera3D& camera) override protected

Draw the object using given camera.

Parameters
transformationMatrix Transformation relative to camera.
camera Camera to draw from.