Jump to content
  • Advertisement
Sign in to follow this  
Vortez

Is this normal?

This topic is 3992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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???

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
omg, sorry for that! Forgot the damn "u" lol, so 255 was givin -1, so clamped to 0...

Thx for you"re help.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!