iso::gl::BufferObject Class Reference

#include <iso_gl_buffer_object.h>

List of all members.

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


Constructor & Destructor Documentation

BufferObject::BufferObject ( GLenum  pBufferType,
GLenum  pBufferUsage 
) throw (GLException)

BufferObject::~BufferObject (  ) 


Member Function Documentation

bool iso::gl::BufferObject::created (  )  const [inline]

returns true if texture has been created, false otherwise

template<typename DataType>
void iso::gl::BufferObject::create ( data::Array< DataType > *  pArray,
GLint  pDataStride 
) throw (GLException)

create buffer object from array

Parameters:
pArray array
pDataStride number of values per group in array
Remarks:
fails if array has wrong format

template<typename DataType>
void iso::gl::BufferObject::create ( int  pDataCount,
GLint  pDataStride,
DataType pDataValues 
) throw (GLException)

create buffer object from array

Parameters:
pDataCount data count
pDataStride number of values per group in array
pDataValues data values
Remarks:
fails if array has wrong format

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


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:01:55 2011 for iso_gl by  doxygen 1.5.1