List of all members.
Constructor & Destructor Documentation
Constructor. All dimensions are node-based, this means a grid consisting of 2x2 cells would have 3x3 nodes.
- Parameters:
-
| window_title title of the window created |
| _grid_x_size number of nodes of the grid (in x-direction) |
| _grid_y_size number of nodes of the grid (in y-direction) |
Destructor (see note below)
Member Function Documentation
Frees all memory we used for geometry data Needs to be called before destructor gets called in order to work correctly
Returns a pointer to the cuda memory object holding the vertex normals
Returns a pointer to the cuda memory object holding the vertex positions
Allocates memory for vertices and other geometry data.
- Parameters:
-
sim | instance of the simulation class |
Returns, whether a special extension is supported by the current graphics card
- Parameters:
-
szTargetExtention | string describing the extension to look for |
Main rendering function. Draws the scene and updates screen
Gets called when window gets resized
- Parameters:
-
newWidth | new window width in pixels |
newHeight | height in pixels |
Sets current rendering mode
- Parameters:
-
Switches between 3 different rendering modes:
- Shaded: Use OpenGL shading
- Wireframe: Only render edges of each triangle
- Watershader: Use custom GLSL shader for water surface
The documentation for this class was generated from the following files:
- /import/home/rettenbs/src/SWE/src/opengl/visualization.h
- /import/home/rettenbs/src/SWE/src/opengl/visualization.cpp