struct mrpt::opengl::CTextMessageCapable::DataPerText¶
#include <mrpt/opengl/CTextMessageCapable.h> struct DataPerText: public mrpt::opengl::T2DTextData { // fields mrpt::opengl::CText::Ptr gl_text; mrpt::opengl::CText::Ptr gl_text_shadow; bool gl_text_outdated = true; std::string vfont_name = "mono"; float vfont_scale = 10.0f; TOpenGLFontStyle vfont_style = opengl::FILL; double vfont_spacing = 1.5; double vfont_kerning = 0.1; };
Inherited Members¶
public: // fields mrpt::img::TColorf color = {1.0f, 1.0f, 1.0f, 1.0f}; bool draw_shadow = false; mrpt::img::TColorf shadow_color = {0.0f, 0.0f, 0.0f, 1.0f}; std::string text; double x {0}; double y {0};
Fields¶
std::string vfont_name = "mono"
Vectorized font name (“sans”,”mono”,”serif”)
float vfont_scale = 10.0f
Size of characters [pixels].
TOpenGLFontStyle vfont_style = opengl::FILL
(default: FILL) See TOpenGLFontStyle.
double vfont_spacing = 1.5
(default: 1.5) Refer to mrpt::opengl::gl_utils::glDrawText
double vfont_kerning = 0.1
(default: 0.1) Refer to mrpt::opengl::gl_utils::glDrawText