Fading example in C++ OpenGL/GLUT