Browse Source

Getter for buffer type.

vectorfields
Vladimír Vondruš 16 years ago
parent
commit
118515b3cd
  1. 3
      src/Buffer.h

3
src/Buffer.h

@ -117,6 +117,9 @@ class Buffer {
glDeleteBuffers(1, &buffer);
}
/** @brief Buffer type */
inline Type type() const { return _type; }
/** @brief Bind buffer */
inline void bind() const {
glBindBuffer(_type, buffer);

Loading…
Cancel
Save