Cortex  10.0.0-a4
Public Member Functions | List of all members
IECoreGL::Buffer::ScopedBinding Class Reference

#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.
 

Detailed Description

The ScopedBinding class allows the buffer to be bound to a target for a specific duration, without worrying about remembering to unbind it.


The documentation for this class was generated from the following file: