TextRenderer is a class to render text using OpenGL and FreeType2.
More...
#include <TextRenderer.h>
TextRenderer is a class to render text using OpenGL and FreeType2.
Definition at line 106 of file TextRenderer.h.
◆ TextRenderer()
gVirtualXRay::TextRenderer::TextRenderer |
( |
| ) |
|
|
inline |
◆ ~TextRenderer()
gVirtualXRay::TextRenderer::~TextRenderer |
( |
| ) |
|
|
inlinevirtual |
◆ initialise() [1/2]
void gVirtualXRay::TextRenderer::initialise |
( |
unsigned int |
aFontSize = 16 *38 | ) |
|
Initialise the default font.
- Parameters
-
aFontSize | the font size (default value: 16*38) |
◆ initialise() [2/2]
void gVirtualXRay::TextRenderer::initialise |
( |
const std::string |
aFontFile, |
|
|
unsigned int |
aFontSize = 16 *38 |
|
) |
| |
Initialise the given font.
- Parameters
-
aFontFile | the font file |
aFontSize | the font size (default value: 16*38) |
◆ initialiseInternalStates()
void gVirtualXRay::TextRenderer::initialiseInternalStates |
( |
unsigned int |
aFontSize | ) |
|
|
protected |
Initialise internal states.
- Parameters
-
◆ initialize() [1/2]
void gVirtualXRay::TextRenderer::initialize |
( |
unsigned int |
aFontSize = 16*38 | ) |
|
|
inline |
Initialise the default font.
- Parameters
-
aFontSize | the font size (default value: 16*38) |
Definition at line 140 of file TextRenderer.inl.
◆ initialize() [2/2]
void gVirtualXRay::TextRenderer::initialize |
( |
const std::string |
aFontFile, |
|
|
unsigned int |
aFontSize = 16*38 |
|
) |
| |
|
inline |
Initialise the given font.
- Parameters
-
aFontFile | the font file |
aFontSize | the font size (default value: 16*38) |
Definition at line 148 of file TextRenderer.inl.
◆ isInitialised()
bool gVirtualXRay::TextRenderer::isInitialised |
( |
| ) |
const |
|
inline |
Accessor on the initialisation flag.
- Returns
- true if the text renderer is initialised, false if it is not
Definition at line 157 of file TextRenderer.inl.
◆ release()
void gVirtualXRay::TextRenderer::release |
( |
| ) |
|
|
inline |
◆ renderText()
void gVirtualXRay::TextRenderer::renderText |
( |
const std::string & |
aText, |
|
|
float |
x, |
|
|
float |
y, |
|
|
Matrix4x4< GLfloat > & |
aProjectionMatrix, |
|
|
GLfloat * |
apBackgroundColour, |
|
|
GLfloat * |
apFontColour |
|
) |
| |
Display some text.
- Parameters
-
aText | the text to display |
x | the x-position of the text |
y | the y-position of the text |
aProjectionMatrix | the projection matrix |
apBackgroundColour | the background colour (RGBA) |
apFontColour | the font colour (RGBA) |
◆ m_initialised
bool gVirtualXRay::TextRenderer::m_initialised |
|
protected |
Flag set to true when the fond is initialised.
Definition at line 281 of file TextRenderer.h.
The documentation for this class was generated from the following files:
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/TextRenderer.h
- /home/fpvidal/PROGRAMMING/RELEASE/gVirtualXray-2.0.10-Source/gvxr/include/gVirtualXRay/TextRenderer.inl