#include <iso_gl_buffer_object.h>
Public Member Functions | |
BufferObject (GLenum pBufferType, GLenum pBufferUsage) throw (GLException) | |
~BufferObject () | |
bool | created () const |
returns true if texture has been created, false otherwise | |
template<typename DataType> | |
void | create (data::Array< DataType > *pArray, GLint pDataStride) throw (GLException) |
create buffer object from array | |
template<typename DataType> | |
void | create (int pDataCount, GLint pDataStride, DataType *pDataValues) throw (GLException) |
create buffer object from array | |
GLenum | bufferType () const |
int | dataCount () const |
GLenum | dataType () const |
GLuint | dataStride () const |
void | bind () const |
bind buffer object | |
void | release () const |
release buffer object | |
void | destroy () |
destroy buffer object | |
Protected Attributes | |
GLuint | mId |
id | |
GLenum | mBufferType |
buffer type | |
int | mDataCount |
data count | |
GLenum | mDataType |
data type | |
GLenum | mBufferUsage |
buffer usage | |
GLint | mDataStride |
group size | |
bool | mCreated |
BufferObject::BufferObject | ( | GLenum | pBufferType, | |
GLenum | pBufferUsage | |||
) | throw (GLException) |
BufferObject::~BufferObject | ( | ) |
bool iso::gl::BufferObject::created | ( | ) | const [inline] |
returns true if texture has been created, false otherwise
void iso::gl::BufferObject::create | ( | data::Array< DataType > * | pArray, | |
GLint | pDataStride | |||
) | throw (GLException) |
create buffer object from array
pArray | array | |
pDataStride | number of values per group in array |
void iso::gl::BufferObject::create | ( | int | pDataCount, | |
GLint | pDataStride, | |||
DataType * | pDataValues | |||
) | throw (GLException) |
create buffer object from array
pDataCount | data count | |
pDataStride | number of values per group in array | |
pDataValues | data values |
GLenum BufferObject::bufferType | ( | ) | const |
int BufferObject::dataCount | ( | ) | const |
GLenum BufferObject::dataType | ( | ) | const |
GLuint BufferObject::dataStride | ( | ) | const |
void BufferObject::bind | ( | ) | const |
bind buffer object
void BufferObject::release | ( | ) | const |
release buffer object
void BufferObject::destroy | ( | ) |
destroy buffer object
GLuint iso::gl::BufferObject::mId [protected] |
id
GLenum iso::gl::BufferObject::mBufferType [protected] |
buffer type
int iso::gl::BufferObject::mDataCount [protected] |
data count
GLenum iso::gl::BufferObject::mDataType [protected] |
data type
GLenum iso::gl::BufferObject::mBufferUsage [protected] |
buffer usage
GLint iso::gl::BufferObject::mDataStride [protected] |
group size
bool iso::gl::BufferObject::mCreated [protected] |