Cortex
10.0.0-a4
|
#include <Buffer.h>
Public Member Functions | |
ScopedBinding (const Buffer &buffer, GLenum target=GL_ARRAY_BUFFER) | |
Binds the specified buffer to the specified target. | |
~ScopedBinding () | |
Rebinds the previously bound buffer. | |
The ScopedBinding class allows the buffer to be bound to a target for a specific duration, without worrying about remembering to unbind it.