PDA

View Full Version : World Color



Zath
06-22-2006, 01:32 PM
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

RigidBody
06-22-2006, 01:35 PM
try glClearColor(0.0, 1.0, 0.0, 1.0);

Zath
06-22-2006, 01:39 PM
Excellent!

Thanks,

Zath