interger RGB values

Started by
1 comment, last by opendep 16 years, 2 months ago
hi I am trying to render a .vxl file (specifically developed for a project) which has the coordinate and color values for a point in 3D (X Y Z R G B) but the colour values are integers(0 to 255). Is there any inbuilt support in opengl or any other way to render this..? coz the usual function used is glColour3f which takes floating point values from 0 to 1. Can anyone help me with this..? Thank you.
Advertisement
You can use glColor3ub() or glColor3ui()
thank you.. :-)

This topic is closed to new replies.

Advertisement