SuzanneIsland: An island of Real-time rendering effects!
Public Member Functions
TextRenderer Class Reference

Public Member Functions

 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...
 

Member Function Documentation

§ 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]texttext string to render
[in]xleft side horizontal position of the text
[in]ybottom side vertical position of the text
[in]scaleFactorthe factor by which the font is scaled
[in]colorthe color to render the text with

The documentation for this class was generated from the following files: