chrono::opengl::ChOpenGLText Class Reference
Description
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 | |
bool | Initialize (ChOpenGLMaterial mat, ChOpenGLShader *shader) |
virtual void | Draw (const glm::mat4 &projection=glm::mat4(1), const glm::mat4 &view=glm::mat4(1)) override |
virtual void | TakeDown () override |
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 | |
bool | Initialize () |
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 |
ChOpenGLShader * | shader |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_opengl/shapes/ChOpenGLText.h
- /builds/uwsbel/chrono/src/chrono_opengl/shapes/ChOpenGLText.cpp