Skip to content

exMachina316/fluid_sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Install Dependencies:

  1. Install OpenGL:
    sudo apt install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev mesa-utils
  2. Install GLFW and GLM:
    sudo apt install libglfw3-dev libglm-dev

Setup GLAD

  1. Visit Glad Tool to get OpenGL bindings for c++. Glad tool config
  2. Place glad.c in src.
  3. Place the glad folder in the include directory.

The project should look like this by now:

fluid_sim
β”œβ”€β”€ build.sh
β”œβ”€β”€ CMakeLists.txt
β”œβ”€β”€ docs
β”‚   └── image.png
β”œβ”€β”€ include
β”‚   β”œβ”€β”€ fluid_sim.h
β”‚   └── glad
β”‚       └── glad.h
β”œβ”€β”€ README.md
β”œβ”€β”€ run.sh
└── src
    |── fluid_sim.cpp
    β”œβ”€β”€ glad.c
    └── main.cpp

5 directories, 10 files

Build

From the root workspace, run:

./build.sh

Run

./run.sh

About

A simple cpp based fluid particle simulator with OpenGL renderer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published