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.
|
Texture3D * | getTexture () const |
| Accessor for the volume's 3D texture.
|
BufferObject * | getPbo () 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] | _width | the volume's width |
[in] | _height | the volume's height |
[in] | _depth | the volume's depth |
Member Function Documentation
void PingPongVolume::loadReadData |
( |
void * |
_data | ) |
|
Loads data to the 3D texture.
- Parameters:
-
[in] | _data | the data to load |
void PingPongVolume::loadWriteData |
( |
void * |
_data | ) |
|
Loads data to the pixel buffer object.
- Parameters:
-
[in] | _data | the data to load |
The documentation for this class was generated from the following files: