|
| TextRenderer (const std::string &fontPath, const GLuint &windowWidth, const GLuint &windowHeight) |
|
void | renderText (const std::string &text, GLfloat x, GLfloat y, GLfloat scaleFactor, const glm::vec3 &color) |
| Render the given text to the framebuffer. More...
|
|
§ renderText()
void TextRenderer::renderText |
( |
const std::string & |
text, |
|
|
GLfloat |
x, |
|
|
GLfloat |
y, |
|
|
GLfloat |
scaleFactor, |
|
|
const glm::vec3 & |
color |
|
) |
| |
Render the given text to the framebuffer.
- Parameters
-
[in] | text | text string to render |
[in] | x | left side horizontal position of the text |
[in] | y | bottom side vertical position of the text |
[in] | scaleFactor | the factor by which the font is scaled |
[in] | color | the color to render the text with |
The documentation for this class was generated from the following files: