chrono::opengl::ChOpenGLText Class Reference


Generic renderable text class that uses an atlas stored in the FontData.h file.

#include <ChOpenGLText.h>

Inheritance diagram for chrono::opengl::ChOpenGLText:
Collaboration diagram for chrono::opengl::ChOpenGLText:

Public Member Functions

virtual bool Initialize (ChOpenGLMaterial mat, ChOpenGLShader *shader)
virtual void Draw (const glm::mat4 &projection=glm::mat4(1), const glm::mat4 &view=glm::mat4(1))
void TakeDown ()
void Update ()
void GenerateFontIndex ()
void Render (const std::string &str, float x, float y, float sx, float sy)
- Public Member Functions inherited from chrono::opengl::ChOpenGLObject
virtual bool Initialize ()
virtual bool PostGLInitialize (const GLvoid *ptr, GLsizeiptr size)
void AttachShader (ChOpenGLShader *new_shader)
- Public Member Functions inherited from chrono::opengl::ChOpenGLBase
bool GLReturnedError (const char *s)

Additional Inherited Members

- Protected Attributes inherited from chrono::opengl::ChOpenGLObject
GLuint vertex_array_handle
GLuint vertex_data_handle
GLuint vertex_element_handle
GLuint vertex_ambient_handle
GLuint vertex_diffuse_handle
GLuint vertex_specular_handle
GLuint vertex_model_handle
std::vector< GLuint > vertex_indices