A 2D text (bitmap rendering): it always "faces the observer" despite it's at some 3D location...
virtual ~CText() override
void render(const RenderContext &rc) const override
Implements the rendering of 3D objects in each class derived from CRenderizable.
std::string getFont() const
shader_list_t requiredShaders() const override
Returns the ID of the OpenGL shader program required to render this class.
CText(const std::string &str=std::string(""))
Constructor.
std::string getString() const
Return the current text associated to this label.
void onUpdateBuffers_Text() override
Must be implemented in derived classes to update the geometric entities to be drawn in "m_*_buffer" f...
void setFont(const std::string &s, int height)
Sets the font (It has no effect yet!)
Renderizable generic renderer for objects using the "text shader".
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
void setString(const std::string &s)
Sets the text to display.