PDA

View Full Version : Changing Bkgrnd color from Black to white



02-16-2004, 10:59 AM
Hi..

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 .

thanks
vikky

c0d3Junk3Y
02-16-2004, 11:07 AM
Find this string in your program.

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


Edit RGB respectively until desired color is reached.

brcain
02-17-2004, 12:44 PM
[QUOTE]Originally posted by c0d3Junk3Y:
glClearColor (0.0f, 0.0f, 0.0f, 0.5f);
QUOTE]

Then call: glClear(GL_COLOR_BUFFER_BIT);