MRPT  2.0.1
Classes | Namespaces | Variables
gltext.cpp File Reference
#include "opengl-precomp.h"
#include "gltext.h"
#include <mrpt/math/TPoint2D.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <map>
#include "glfont_mono.h"
#include "glfont_sans.h"
#include "glfont_serif.h"
Include dependency graph for gltext.cpp:

Go to the source code of this file.

Classes

struct  mrpt::opengl::internal::Point
 
struct  mrpt::opengl::internal::Font
 
struct  mrpt::opengl::internal::Font::Char
 
struct  mrpt::opengl::internal::FontData
 

Namespaces

 mrpt::opengl::internal
 

Functions

OpenGL vector 3D fonts
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...
 
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...
 
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...
 

Variables

Point mrpt::opengl::internal::mono_vertices []
 
Font::Index mrpt::opengl::internal::mono_triangles []
 
Font::Index mrpt::opengl::internal::mono_lines []
 
Font::Char mrpt::opengl::internal::mono_chars []
 
Font mrpt::opengl::internal::mono_font
 
Point mrpt::opengl::internal::sans_vertices []
 
Font::Index mrpt::opengl::internal::sans_triangles []
 
Font::Index mrpt::opengl::internal::sans_lines []
 
Font::Char mrpt::opengl::internal::sans_chars []
 
Font mrpt::opengl::internal::sans_font
 
Point mrpt::opengl::internal::serif_vertices []
 
Font::Index mrpt::opengl::internal::serif_triangles []
 
Font::Index mrpt::opengl::internal::serif_lines []
 
Font::Char mrpt::opengl::internal::serif_chars []
 
Font mrpt::opengl::internal::serif_font
 
static struct FontData mrpt::opengl::internal::data
 



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