Base painter that renders a mesh through a Lumina pipeline.
More...
#include <spk_mesh_painter.hpp>
|
|
using | Mesh = TMeshType |
| | Mesh type handled by the painter.
|
|
| virtual void | setMesh (const Mesh *p_mesh) |
| | Sets the mesh to render.
|
| const Mesh * | mesh () const |
| | Returns the currently bound mesh.
|
|
void | render () |
| | Renders the current mesh when available.
|
template<typename TMeshType>
class spk::MeshPainter< TMeshType >
Base painter that renders a mesh through a Lumina pipeline.
- Template Parameters
-
| TMeshType | Mesh type rendered by the painter. |
- See also
- IMesh
painter.render();
Base painter that renders a mesh through a Lumina pipeline.
Definition spk_mesh_painter.hpp:24
const Mesh * mesh() const
Returns the currently bound mesh.
Definition spk_mesh_painter.hpp:86
◆ MeshPainter()
template<typename TMeshType>
Builds a mesh painter bound to a pipeline.
- Parameters
-
| p_pipeline | Rendering pipeline. |
◆ _objectHandle() [1/2]
template<typename TMeshType>
Returns the render object handle.
- Returns
- Mutable pipeline object.
◆ _objectHandle() [2/2]
template<typename TMeshType>
Returns the render object handle.
- Returns
- Const pipeline object.
◆ mesh()
template<typename TMeshType>
Returns the currently bound mesh.
- Returns
- Mesh pointer or nullptr.
◆ setMesh()
template<typename TMeshType>
Sets the mesh to render.
- Parameters
-
| p_mesh | Mesh pointer; may be null to detach. |
Reimplemented in spk::FontPainter.
The documentation for this class was generated from the following file: