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
    // structs

    struct RAII_Impl;


    void create();
    void createOnce();
    bool isCreated() const;
    void destroy();
    void bind();
    void release();
    unsigned int bufferId() const;


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.