Eulerian Smoke Simulation on the GPU
BufferObject Class Reference

A class for creating OpenGL Buffer Objects. More...

#include <BufferObject.h>

List of all members.

Public Member Functions

 BufferObject ()
 Constructor.
 ~BufferObject ()
 Destructor.
GLuint getHandle () const
 Accessor for the buffer's handle.
GLenum getTarget () const
 Accessor for the buffer's active target.
void bind (GLenum _target)
 Binds the buffer to a selected buffer target.
void unbind ()
 Unbinds the buffer from the current target.
void loadData (GLsizeiptr _dataSize, const GLvoid *_data, GLenum _bufferUsage)
 Loads data into the buffer object.
void updateSubData (GLintptr _dataOffest, GLsizeiptr _dataSize, const GLvoid *_data)
 Updates a subset of the buffer object's data.
void getParameter (GLenum _value, GLint *_data)
 Accessor for any OpenGL buffer object parameter.

Detailed Description

A class for creating OpenGL Buffer Objects.

Author:
Nikolaos Verigakis
Version:
1.0
Date:
26/07/11 Revision History : Initial Version 26/07/11

Member Function Documentation

void BufferObject::bind ( GLenum  _target)

Binds the buffer to a selected buffer target.

Parameters:
[in]_targetthe target to bind the buffer to
void BufferObject::getParameter ( GLenum  _value,
GLint *  _data 
)

Accessor for any OpenGL buffer object parameter.

Parameters:
[in]_valuethe symbolic name of a buffer object parameter
[in]_datathe data to return the the requested parameter
void BufferObject::loadData ( GLsizeiptr  _dataSize,
const GLvoid *  _data,
GLenum  _bufferUsage 
)

Loads data into the buffer object.

Parameters:
[in]_dataSizethe data size in bytes
[in]_datathe data to load
[in]_bufferUsagethe expected usage pattern of the data store
void BufferObject::updateSubData ( GLintptr  _dataOffest,
GLsizeiptr  _dataSize,
const GLvoid *  _data 
)

Updates a subset of the buffer object's data.

Parameters:
[in]_dataOffsetthe offset into the buffer object's data
[in]_dataSizethe pixel data size in bytes
[in]_datathe pixel data to load

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables