openGL carnival program in C