MRPT  1.9.9
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 46 of file opengl_fonts.h.

#include <mrpt/opengl/opengl_fonts.h>

Inheritance diagram for mrpt::opengl::TFontParams:

Public Member Functions

 TFontParams ()
 

Public Attributes

mrpt::img::TColorf color
 
bool draw_shadow {false}
 
mrpt::img::TColorf shadow_color
 
Bitmapped font params
mrpt::opengl::TOpenGLFont font {MRPT_GLUT_BITMAP_NONE}
 
Vectorized font params - Applicable only if

font==MRPT_GLUT_BITMAP_NONE

std::string vfont_name
 Vectorized font name ("sans","mono","serif") More...
 
double vfont_scale {10}
 Size of characters. More...
 
TOpenGLFontStyle vfont_style {}
 (default: NICE) See TOpenGLFontStyle. More...
 
double vfont_spacing {1.5}
 (default: 1.5) Refer to mrpt::opengl::gl_utils::glDrawText More...
 
double vfont_kerning {0.1}
 (default: 0.1) Refer to mrpt::opengl::gl_utils::glDrawText More...
 

Constructor & Destructor Documentation

◆ TFontParams()

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

Definition at line 48 of file opengl_fonts.h.

Member Data Documentation

◆ color

mrpt::img::TColorf mrpt::opengl::TFontParams::color

Definition at line 49 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ draw_shadow

bool mrpt::opengl::TFontParams::draw_shadow {false}

Definition at line 51 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ font

mrpt::opengl::TOpenGLFont mrpt::opengl::TFontParams::font {MRPT_GLUT_BITMAP_NONE}

Definition at line 56 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ shadow_color

mrpt::img::TColorf mrpt::opengl::TFontParams::shadow_color

Definition at line 52 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ vfont_kerning

double mrpt::opengl::TFontParams::vfont_kerning {0.1}

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

Definition at line 71 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ vfont_name

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

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

Definition at line 63 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ vfont_scale

double mrpt::opengl::TFontParams::vfont_scale {10}

Size of characters.

Definition at line 65 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ vfont_spacing

double mrpt::opengl::TFontParams::vfont_spacing {1.5}

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

Definition at line 69 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().

◆ vfont_style

TOpenGLFontStyle mrpt::opengl::TFontParams::vfont_style {}

(default: NICE) See TOpenGLFontStyle.

Definition at line 67 of file opengl_fonts.h.

Referenced by mrpt::opengl::CTextMessageCapable::addTextMessage().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 5ec5114f2 Thu Feb 20 07:54:08 2020 +0100 at jue feb 20 08:00:10 CET 2020