Changing Bkgrnd color from Black to white


newbie question. I just posted something a while ago…but ive found a way around it.

When opengl is initialized, the normal color seems to be black background…how do i change that to white.

I want all my drawings to be in white. So that i get white on black .


Find this string in your program.

glClearColor (0.0f, 0.0f, 0.0f, 0.5f);

Edit RGB respectively until desired color is reached.

[QUOTE]Originally posted by c0d3Junk3Y:
glClearColor (0.0f, 0.0f, 0.0f, 0.5f);

Then call: glClear(GL_COLOR_BUFFER_BIT);