Eulerian Smoke Simulation on the GPU
|
A class that creates a simulation obstacle. More...
#include <Obstacle.h>
Public Types | |
enum | SurfaceType { NONE, SPHERE, TORUS, CAYLEY } |
Public Member Functions | |
Obstacle (int _resX, int _resY, int _resZ, int _samplerIndex) | |
Constructor. | |
~Obstacle () | |
Destructor. | |
void | createObject (SurfaceType _surfaceType) |
Creates the obstacle object. | |
int | getResX () const |
Accessor for the obstacle resolution in X. | |
int | getResY () const |
Accessor for the obstacle resolution in Y. | |
int | getResZ () const |
Accessor for the obstacle resolution in Z. | |
Texture3D * | getTexture () const |
Accessor for the obstacle 3D texture. | |
ngl::Vector * | getSimData () const |
Accessor for the obstacle simulation data. |
A class that creates a simulation obstacle.
Obstacle::Obstacle | ( | int | _resX, |
int | _resY, | ||
int | _resZ, | ||
int | _samplerIndex | ||
) |
Constructor.
[in] | _resX | the obstacle resolution in X |
[in] | _resY | the obstacle resolution in Y |
[in] | _resZ | the obstacle resolution in Z |