-
ESC
Exit
-
↑
↓
←
→
Rotate cameraW
S
A
D
Move camera positionQ
E
Move camera closer / farther
-
R
RunT
Pause
-
- glad
- glfw
- glew
- glTools
-
- glm
-
struct Vec2
struct Vec3
-
struct Vertex
- A simple type of points with only position and normal data
- Used in rigid body (without texture or anything else)
struct Particle
- Point with physical properties.
- Fluid consists of particles.
- Execute boundary and collision detection actively.
-
struct Ground
struct Sphere
struct Ball
- Ball struct include a center data and a sphere.
-
struct Boundary
- The container of fluid.
class Fluid
- Applied SPH algorithm.
-
class Program
- Compile and connect shaders then make rendering program.
-
All those render classes accept only the pointer of the thing it renders. Call their
flush()
function in the main render loop.struct Camera
struct Light
class BoundaryRender
class FluidRender
class RigidRender
class GroundRender
class BallRender