World Color

Ok, this should be a nice easy one for someone out there.

I just can’t seem to find it.

How do you set the default world color from black?

Right before I do any pushmatrix calls, I have this…

glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//glColor3f(0.0f, 1.0f, 0.0f); //doesn't change the color

I put a poly behind everything and colored that, but I know there’s a better way.

Thanks,

Zath

try glClearColor(0.0, 1.0, 0.0, 1.0);

Excellent!

Thanks,

Zath