-
ESCExit
-
↑↓←→Rotate cameraWSADMove camera positionQEMove camera closer / farther
-
RRunTPause
-
- glad
- glfw
- glew
- glTools
-
- glm
-
struct Vec2struct 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 Groundstruct Spherestruct 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 Camerastruct Lightclass BoundaryRenderclass FluidRenderclass RigidRenderclass GroundRenderclass BallRender


