Is this normal?

Started by
1 comment, last by Vortez 16 years, 3 months ago
Hi, i've just came across a strange ogl problem... glColor3b(255, 255, 255); dosent seem to work, i have to use glColor3f(1.0f, 1.0f, 1.0f); instead... glColor3b() seem to have no effect with any value... Any idea???
Advertisement
Try
glColor3ub(255, 255, 255)
instead.
My guess is:
ub = unsigned byte, values from 0 to 255
b = byte, values from -127 to 127
baumep
omg, sorry for that! Forgot the damn "u" lol, so 255 was givin -1, so clamped to 0...

Thx for you"re help.

This topic is closed to new replies.

Advertisement