C++, Cg, OpenGL 2d and 3d fluid solver