1 #ifndef INCLUDE_AL_GRAPHICS_BUFFEROBJECT_HPP
2 #define INCLUDE_AL_GRAPHICS_BUFFEROBJECT_HPP
47 #include "al/graphics/al_GPUObject.hpp"
48 #include "al/graphics/al_OpenGL.hpp"
96 void data(
size_t size,
void const* src = NULL);
97 void subdata(
int offset,
int size,
void const* src);
void usage(unsigned int v)
Set buffer usage.
int size() const
Get buffer store size, in bytes.
unsigned int mType
Set map mode.
virtual void onDestroy()
Called when currently assigned context is destroyed.
virtual void onCreate()
Called when currently assigned context is created.
void bufferType(unsigned int v)
Set buffer type.
void unbind() const
Unbind buffer.