struct mrpt::opengl::T2DTextData

An auxiliary struct for holding a list of text messages in some mrpt::opengl & mrpt::gui classes The font can be either a bitmapped or a vectorized font.

See also:

mrpt::opengl::CTextMessageCapable

#include <mrpt/opengl/opengl_fonts.h>

struct T2DTextData: public mrpt::opengl::TFontParams
{
    //
fields

    std::string text;
    double x {0};
    double y {0};

    // construction

    T2DTextData();
};

// direct descendants

struct DataPerText;

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};