MRPT  2.0.4
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 36 of file opengl_fonts.h.

#include <mrpt/opengl/opengl_fonts.h>

Inheritance diagram for mrpt::opengl::TFontParams:

Public Member Functions

 TFontParams ()=default
 

Public Attributes

std::string vfont_name = "mono"
 Vectorized font name ("sans","mono","serif") More...
 
float vfont_scale = 10.0f
 Size of characters [pixels]. More...
 
mrpt::img::TColorf color = {1.0f, 1.0f, 1.0f, 1.0f}
 
bool draw_shadow = false
 
mrpt::img::TColorf shadow_color = {0.0f, 0.0f, 0.0f, 1.0f}
 
TOpenGLFontStyle vfont_style = opengl::FILL
 (default: FILL) 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 ( )
default

Member Data Documentation

◆ color

mrpt::img::TColorf mrpt::opengl::TFontParams::color = {1.0f, 1.0f, 1.0f, 1.0f}

◆ draw_shadow

bool mrpt::opengl::TFontParams::draw_shadow = false

◆ shadow_color

mrpt::img::TColorf mrpt::opengl::TFontParams::shadow_color = {0.0f, 0.0f, 0.0f, 1.0f}

◆ vfont_kerning

double mrpt::opengl::TFontParams::vfont_kerning = 0.1

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

Definition at line 58 of file opengl_fonts.h.

Referenced by mrpt::opengl::COpenGLViewport::serializeFrom().

◆ vfont_name

std::string mrpt::opengl::TFontParams::vfont_name = "mono"

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

Definition at line 41 of file opengl_fonts.h.

Referenced by mrpt::opengl::COpenGLViewport::renderTextMessages(), and mrpt::opengl::COpenGLViewport::serializeFrom().

◆ vfont_scale

float mrpt::opengl::TFontParams::vfont_scale = 10.0f

Size of characters [pixels].

Definition at line 44 of file opengl_fonts.h.

Referenced by mrpt::opengl::COpenGLViewport::renderTextMessages(), and mrpt::opengl::COpenGLViewport::serializeFrom().

◆ vfont_spacing

double mrpt::opengl::TFontParams::vfont_spacing = 1.5

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

Definition at line 55 of file opengl_fonts.h.

Referenced by mrpt::opengl::COpenGLViewport::serializeFrom().

◆ vfont_style

TOpenGLFontStyle mrpt::opengl::TFontParams::vfont_style = opengl::FILL

(default: FILL) See TOpenGLFontStyle.

Definition at line 52 of file opengl_fonts.h.

Referenced by mrpt::opengl::COpenGLViewport::serializeFrom().




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020