mrpt::opengl::CText::Ptr gl_text
std::map< uint32_t, DataPerText > messages
const TListTextMessages & getTextMessages() const
mrpt::opengl::CText::Ptr gl_text_shadow
Keeps a list of text messages which can be rendered to OpenGL contexts by graphic classes.
bool updateTextMessage(const size_t unique_index, const std::string &text)
Just updates the text of a given text message, without touching the other parameters.
An auxiliary struct for holding a list of text messages in some mrpt::opengl & mrpt::gui classes The ...
void regenerateGLobjects() const
(re)generate all CText objects in the gl_text fields
TListTextMessages m_2D_texts
void addTextMessage(const double x_frac, const double y_frac, const std::string &text, const size_t unique_index=0, const TFontParams &fontParams=TFontParams())
Add 2D text messages overlapped to the 3D rendered scene.
std::shared_ptr< mrpt::opengl ::CText > Ptr