Eulerian Smoke Simulation on the GPU
PingPongVolume Class Reference

A class that creates a volume for GPU ping pong operations. It employs a 3D texture for reading and a pixel buffer object for writting. More...

#include <PingPongVolume.h>

List of all members.

Public Member Functions

 PingPongVolume (int _width, int _height, int _depth, int _samplerIndex)
 Constructor.
 ~PingPongVolume ()
 Destructor.
void swap ()
 Updates the volume's 3D texture data from the PBO.
void loadReadData (void *_data)
 Loads data to the 3D texture.
void loadWriteData (void *_data)
 Loads data to the pixel buffer object.
int getWidth () const
 Accessor for the volume's width.
int getHeight () const
 Accessor for the volume's height.
int getDepth () const
 Accessor for the volume's depth.
Texture3DgetTexture () const
 Accessor for the volume's 3D texture.
BufferObjectgetPbo () const
 Accessor for the volume's pixel buffer object.

Detailed Description

A class that creates a volume for GPU ping pong operations. It employs a 3D texture for reading and a pixel buffer object for writting.

Author:
Nikolaos Verigakis
Version:
1.0
Date:
14/06/11 Revision History : Initial Version 14/06/11

Constructor & Destructor Documentation

PingPongVolume::PingPongVolume ( int  _width,
int  _height,
int  _depth,
int  _samplerIndex 
)

Constructor.

Parameters:
[in]_widththe volume's width
[in]_heightthe volume's height
[in]_depththe volume's depth

Member Function Documentation

void PingPongVolume::loadReadData ( void *  _data)

Loads data to the 3D texture.

Parameters:
[in]_datathe data to load
void PingPongVolume::loadWriteData ( void *  _data)

Loads data to the pixel buffer object.

Parameters:
[in]_datathe data to load

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