List of all members.
Constructor & Destructor Documentation
Constructor. Initializes SWE_BlockCUDA and creates a new instance of it.
Member Function Documentation
Computes a first approximation of the scaling values needed for visualization. Gets called before simulation starts and determines the average, mininimum and maximum values of the bathymetry and water surface data. Uses latter values to estimate the scaling factors.
Restarts the simulation. Restores the initial bondaries.
void Simulation::runCuda |
( |
struct cudaGraphicsResource ** |
vbo_resource, |
|
|
struct cudaGraphicsResource ** |
vbo_normals |
|
) |
| |
This is the main simulation procedure. Simulates one timestep and computes normals afterwards.
- Parameters:
-
vbo_resource | cuda resource holding the vertex positions |
vbo_normals | cuda resource holding the normals |
Sets the bathymetry buffer. Buffer contains vertex position and vertex normal in sequence.
- Parameters:
-
bath | float array in which computed values will be stored |
The documentation for this class was generated from the following files:
- /import/home/rettenbs/src/SWE/src/opengl/simulation.h
- /import/home/rettenbs/src/SWE/src/opengl/simulation.cu