MRPT  2.0.1
Namespaces
gltext.h File Reference
#include <mrpt/math/TPoint3D.h>
#include <mrpt/opengl/TTriangle.h>
#include <mrpt/opengl/opengl_fonts.h>
#include <mrpt/poses/CPose3D.h>
#include <iostream>
#include <map>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for gltext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mrpt::opengl::internal
 

OpenGL vector 3D fonts

using mrpt::opengl::internal::TEXT_STYLE = TOpenGLFontStyle
 different style for font rendering More...
 
void mrpt::opengl::internal::glSetFont (const std::string &fontname)
 sets the font to use for future font rendering commands. More...
 
const std::string & mrpt::opengl::internal::glGetFont ()
 returns the name of the currently active font More...
 
std::pair< double, double > mrpt::opengl::internal::glDrawText (const std::string &text, std::vector< mrpt::opengl::TTriangle > &tris, std::vector< mrpt::math::TPoint3Df > &lines, TEXT_STYLE style=NICE, double spacing=1.5, double kerning=0.1)
 renders a string in GL using the current settings. More...
 
void mrpt::opengl::internal::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=NICE, double spacing=1.5, double kerning=0.1)
 Appends to {tris,lines} the entities representing a given text including a pose and scale transformation. More...
 
std::pair< double, double > mrpt::opengl::internal::glGetExtends (const std::string &text, double spacing=1.5, double kerning=0.1)
 returns the size of the bounding box of a text to be rendered, similar to glDrawText but without any visual output More...
 



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020