Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::TFontParams Struct Reference

Detailed Description

A description of a bitmapped or vectorized text font.

(Vectorized fonts are recommended for new code).

See Also
mrpt::opengl::gl_utils::glSetFont(), mrpt::opengl::gl_utils::glDrawText()

Definition at line 66 of file opengl_fonts.h.

#include <mrpt/opengl/opengl_fonts.h>

Inheritance diagram for mrpt::opengl::TFontParams:
Inheritance graph
[legend]

Public Member Functions

 TFontParams ()
 

Public Attributes

mrpt::utils::TColorf color
 
Bitmapped font params
mrpt::opengl::TOpenGLFont font
 
Vectorized font params - Applicable only if font==MRPT_GLUT_BITMAP_NONE
std::string vfont_name
 Vectorized font name ("sans","mono","serif")
 
double vfont_scale
 Size of characters.
 
TOpenGLFontStyle vfont_style
 (default: NICE) See TOpenGLFontStyle.
 
double vfont_spacing
 (default: 1.5) Refer to mrpt::opengl::gl_utils::glDrawText
 
double vfont_kerning
 (default: 0.1) Refer to mrpt::opengl::gl_utils::glDrawText
 

Constructor & Destructor Documentation

mrpt::opengl::TFontParams::TFontParams ( )
inline

Definition at line 68 of file opengl_fonts.h.

Member Data Documentation

mrpt::utils::TColorf mrpt::opengl::TFontParams::color

Definition at line 78 of file opengl_fonts.h.

mrpt::opengl::TOpenGLFont mrpt::opengl::TFontParams::font

Definition at line 82 of file opengl_fonts.h.

double mrpt::opengl::TFontParams::vfont_kerning

(default: 0.1) Refer to mrpt::opengl::gl_utils::glDrawText

Definition at line 91 of file opengl_fonts.h.

std::string mrpt::opengl::TFontParams::vfont_name

Vectorized font name ("sans","mono","serif")

Definition at line 87 of file opengl_fonts.h.

double mrpt::opengl::TFontParams::vfont_scale

Size of characters.

Definition at line 88 of file opengl_fonts.h.

double mrpt::opengl::TFontParams::vfont_spacing

(default: 1.5) Refer to mrpt::opengl::gl_utils::glDrawText

Definition at line 90 of file opengl_fonts.h.

TOpenGLFontStyle mrpt::opengl::TFontParams::vfont_style

(default: NICE) See TOpenGLFontStyle.

Definition at line 89 of file opengl_fonts.h.




Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013