My First OpenGL Application on Linux
It is finally here, My first OpenGL application on Linux, I have written OpenGL code on Windows but this is the first time I do so on Linux, Yay for me! :)
What is it do? Well it is just a demo based on a particle system class I wrote few days ago, The particle system is configurable via text files, By modifying these text files you can configure particle behavior, gravity,speed along axes ,etc, and see your changes real-time without having to restart, you can find these files under the “particles” directory.
The demo is very primitive, it has NO frustum culling so it might run VERY slowly on Weak-hearted machines.
The demo uses this simple texturing class which in turns depend on FreeImage library to load textures.
.. One more thing , Here’s the function I used to generate random floating point numbers within a given range, I thought maybe someone would find it useful
{
if( maximum == minimum )return minimum;
float range = maximum-minimum;
float displacment = ((float) rand() / (float)RAND_MAX) * range;
return minimum + displacment;
}
The function could use more optimization “since it is called several thousands of times per frame”.
![]()
![]()


