Browse Source

Function for unbinding given buffer target.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
0feebe3f7c
  1. 8
      src/Buffer.h

8
src/Buffer.h

@ -118,6 +118,14 @@ class Buffer {
DynamicCopy = GL_DYNAMIC_COPY
};
/**
* @brief Unbind any buffer from given target
* @param target %Target
*/
inline static void unbind(Target target) {
glBindBuffer(static_cast<GLenum>(target), 0);
}
/**
* @brief Constructor
* @param defaultTarget Default target (used when calling bind()

Loading…
Cancel
Save