Install SOIL library: sudo apt-get install libsoil-dev
Compile: gcc particle.c -o particle -lGL -lGLU -lglut -lm -lSOIL
Run: ./particle
In case you face the error:
undefined reference to SOIL_load_OGL_texture
then link -lSOIL before linking any other library (some help here or here)
Resources:
-
Textures from OpenGameArt: https://opengameart.org/content/explosion-particles-sprite-atlas
-
Simple OpenGL Image Library http://www.lonesock.net/soil.html