33 void glSetFont(
const std::string& fontname);
53 const std::string& text, std::vector<mrpt::opengl::TTriangle>& tris,
54 std::vector<mrpt::math::TPoint3Df>& lines,
TEXT_STYLE style =
NICE,
55 double spacing = 1.5,
double kerning = 0.1);
62 const std::string& text, std::vector<mrpt::opengl::TTriangle>& tris,
63 std::vector<mrpt::math::TPoint3Df>& lines,
64 std::vector<mrpt::img::TColor>& line_colors,
67 double spacing = 1.5,
double kerning = 0.1);
72 const std::string& text,
double spacing = 1.5,
double kerning = 0.1);
const std::string & glGetFont()
returns the name of the currently active font
std::pair< double, double > glGetExtends(const std::string &text, double spacing, double kerning)
returns the size of the bounding box of a text to be rendered, similar to glDrawText but without any ...
void glDrawTextTransformed(const std::string &text, std::vector< mrpt::opengl::TTriangle > &tris, std::vector< mrpt::math::TPoint3Df > &lines, std::vector< mrpt::img::TColor > &line_colors, const mrpt::poses::CPose3D &text_pose, float text_scale, const mrpt::img::TColor &text_color, TEXT_STYLE style, double spacing, double kerning)
Appends to {tris,lines} the entities representing a given text including a pose and scale transformat...
TOpenGLFontStyle
Different style for vectorized font rendering.
std::pair< double, double > glDrawText(const std::string &text, std::vector< mrpt::opengl::TTriangle > &tris, std::vector< mrpt::math::TPoint3Df > &render_lines, TEXT_STYLE style, double spacing, double kerning)
renders a string in GL using the current settings.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
void glSetFont(const std::string &fontname)
sets the font to use for future font rendering commands.
This was "renders glyphs filled with antialiased outlines", but since antialiased is not properly imp...