1 #ifndef INCLUDE_AL_VAO_HPP
2 #define INCLUDE_AL_VAO_HPP
7 #include "al/graphics/al_BufferObject.hpp"
8 #include "al/graphics/al_OpenGL.hpp"
20 enum DataType :
unsigned int {
22 UBYTE = GL_UNSIGNED_BYTE,
24 USHORT = GL_UNSIGNED_SHORT,
26 UINT = GL_UNSIGNED_INT,
40 void enableAttrib(
unsigned int index);
41 void disableAttrib(
unsigned int index);
42 void attribPointer(
unsigned int index,
BufferObject& buffer,
44 unsigned int type = GL_FLOAT,
45 unsigned char normalized = GL_FALSE,
int stride = 0,
46 void const* offset = NULL
virtual void onDestroy() override
Called when currently assigned context is destroyed.
virtual void onCreate() override
Called when currently assigned context is created.