class mrpt::opengl::COpenGLVertexArrayObject
A wrapper for an OpenGL vertex array object (VAO).
Refer to docs for glGenVertexArrays().
#include <mrpt/opengl/COpenGLVertexArrayObject.h> class COpenGLVertexArrayObject { public: // structs struct RAII_Impl; // construction COpenGLVertexArrayObject(); // methods void create(); void createOnce(); bool isCreated() const; void destroy(); void bind(); void release(); unsigned int bufferId() const; };
Methods
void create()
Actually create the buffer, destroying any previously existing buffer.
void createOnce()
Calls create() only if the buffer has not been created yet.
void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.