chrono::opengl::ChOpenGLObject Class Referenceabstract

Description

Base class for all drawable objects.

#include <ChOpenGLObject.h>

Inheritance diagram for chrono::opengl::ChOpenGLObject:
Collaboration diagram for chrono::opengl::ChOpenGLObject:

Public Member Functions

bool Initialize ()
 
bool PostGLInitialize (const GLvoid *ptr, GLsizeiptr size)
 
void AttachShader (ChOpenGLShader *new_shader)
 
virtual void TakeDown () override
 
virtual void Draw (const glm::mat4 &projection, const glm::mat4 &modelview)=0
 
- Public Member Functions inherited from chrono::opengl::ChOpenGLBase
bool GLReturnedError (const char *s)
 

Protected Attributes

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
 
ChOpenGLShadershader
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_opengl/core/ChOpenGLObject.h
  • /builds/uwsbel/chrono/src/chrono_opengl/core/ChOpenGLObject.cpp