chrono::opengl::ChOpenGLOBJ Class Reference
Description
Class for rendering an object.
#include <ChOpenGLOBJ.h>
Inheritance diagram for chrono::opengl::ChOpenGLOBJ:
Collaboration diagram for chrono::opengl::ChOpenGLOBJ:
Public Member Functions | |
bool | Initialize (std::string filename, ChOpenGLMaterial mat, ChOpenGLShader *shader) |
bool | InitializeString (const char *mesh_data, ChOpenGLMaterial mat, ChOpenGLShader *shader) |
void | Update (std::vector< glm::mat4 > &model) |
virtual void | Draw (const glm::mat4 &projection, const glm::mat4 &modelview) |
virtual void | TakeDown () |
Public Member Functions inherited from chrono::opengl::ChOpenGLBase | |
bool | GLReturnedError (const char *s) |
Protected Attributes | |
std::vector< std::vector< glm::vec3 > > | vertices |
std::vector< std::vector< glm::vec3 > > | normals |
std::vector< std::vector< glm::vec2 > > | texcoords |
std::vector< std::vector< GLuint > > | indices |
std::vector< std::string > | names |
std::vector< ChOpenGLMesh > | meshes |
ChOpenGLOBJLoader | loader |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_opengl/shapes/ChOpenGLOBJ.h
- /builds/uwsbel/chrono/src/chrono_opengl/shapes/ChOpenGLOBJ.cpp