mrpt::opengl::CText::Ptr gl_text
mrpt::opengl::CText::Ptr gl_text_shadow
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.
Keeps a list of text messages which can be rendered to OpenGL contexts by graphic classes...
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.
An auxiliary struct for holding a list of text messages in some mrpt::opengl & mrpt::gui classes The ...
std::map< uint32_t, DataPerText > messages
TListTextMessages m_2D_texts
void regenerateGLobjects() const
(re)generate all CText objects in the gl_text fields
const TListTextMessages & getTextMessages() const