8#include <utility/graphic/renderable.hpp>
9#include <utility/graphic/transform.hpp>
11namespace utility::graphic
35 return poseToMatrix(
_pose);
55 _pose = std::move(pose);
The Renderable class represents an object that can be rendered in the graphics application.
glm::mat4 getModelMatrix(void) const
Get the object-to-world model matrix of this renderable.
std::vector< std::shared_ptr< Mesh > > _meshes
Meshes associated with this renderable object.
PoseF _pose
World pose (position and orientation) of the text.
Renderable & setPose(const PoseF &pose)
Set the text pose.
const PoseF & getPose(void) const
Get the text pose.
const graphic::Color32Bit & getColor(void) const
Get the text color.].
std::vector< std::shared_ptr< Mesh > > getMeshes() const
Get the meshes associated with this renderable object.
Renderable(const PoseF &pose, const Color32Bit &color)
Default constructor for Renderable.
Color32Bit _color
Text RGBA color.
Renderable & setColor(const graphic::Color32Bit &color)
Set the text color.