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

Member Function Documentation

◆ TakeDown()

void chrono::opengl::ChOpenGLObject::TakeDown ( )
overridevirtual

The documentation for this class was generated from the following files:
  • D:/W/B/src/chrono-9.0.1/src/chrono_opengl/core/ChOpenGLObject.h
  • D:/W/B/src/chrono-9.0.1/src/chrono_opengl/core/ChOpenGLObject.cpp