freeglut

GlutSolidSphere not solid

Hi my program is supposed to display a solid red colored sphere in the center of the screen, all i am getting is the boundary of the sphere : int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA); glutInitWindowSize(800,600); glutInitWindowPosition(0,0); glutCreateWindow("Sphere")...

glutHideWindow and glReadPixels on OS X

On a MAC OS X machine, I am using FBO, depth RBO and texture RBO with freeglut to render a 3D scene to FBO and doing a render to texture. All using standard glut functions and glutMainLoop at the end. I am using glReadPixels to read from the FBO. I can see that the pixels are being read correctly. However When I hide the glut window us...