Class VertexArrayObject
Defined in File VertexArrayObject.h
Nested Relationships
Nested Types
Class Documentation
-
class VertexArrayObject
A wrapper for an OpenGL vertex array object (VAO). Refer to docs for glGenVertexArrays().
Note
OpenGL VAOs cannot be shared among threads/GL contexts.
Public Functions
-
VertexArrayObject()
-
~VertexArrayObject() = default
-
inline void createOnce()
Calls create() only if the buffer has not been created yet.
-
inline bool isCreated() const
-
inline void destroy()
Automatically called upon destructor, no need for the user to call it in normal situations.
-
inline void bind() const
-
inline void release()
-
inline unsigned int bufferId() const
-
VertexArrayObject()