View Full Version : glColor3ub

07-17-2003, 01:59 PM
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.
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.

07-17-2003, 03:11 PM
I'm sorry to hear that.

07-20-2003, 12:25 PM
Originally posted by jwatte:
I'm sorry to hear that.

READ : a question would help. http://www.opengl.org/discussion_boards/ubb/smile.gif

07-20-2003, 05:13 PM
Using glColor3ub to draw a quad eh? Well shoot, i'm wasting my time using glVertex then. http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Seriously though, could you post some code snippets? It's hard to say what's wrong without more info.