G
07-17-2003, 01:59 PM
Hi,
I am using glColor3ub to draw GL_QUADS but every time i resize or call the timer function the color of the quads turn black. Hence every time renderScene is called.
glColor3ub(red,green,blue);
it is used in a for loop in which red ,green and blue changes in that for loop but when that for loop is called again (when RenderScene is called )the value are reset therefore it should give the same color.
I am using glColor3ub to draw GL_QUADS but every time i resize or call the timer function the color of the quads turn black. Hence every time renderScene is called.
glColor3ub(red,green,blue);
it is used in a for loop in which red ,green and blue changes in that for loop but when that for loop is called again (when RenderScene is called )the value are reset therefore it should give the same color.