Sand Falling 2D
The project used only the glfw library. Not glew, glut etc.
Controls: You can left click to leave sand, right click to clear all sands.
The sands are mini rectangle here. And the window is divided into grids. Grids is int grids[columnCount][rowCount]
In a for loop, it checks "is grids[i][j] 1 or 0. If its 1 draw and checks next row. If that is 1 too, go right or left.".
hasanefeaksoy / sand-falling-2d Goto Github PK
View Code? Open in Web Editor NEW2D Sand Falling Simulation in C++ with OpenGL (glfw).