• Advertisement
Sign in to follow this  

OpenGL - Object Line Colour

This topic is 3829 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 all How do I specify a line colour when drawing an object in OpenGL? For example, I can draw a red square but I want the outline to be black and the square to remain red. Also, does anyone know a website that lists the RGB values used in OpenGL for the various colours? Thanks in advance, S

Share this post


Link to post
Share on other sites
Advertisement
You might also be interested to know that you can change line thickness with the glLineWidth(w) function.

As for the colouring, use a normal colour chart and divide the values by 256? I'm pretty sure that will work.

Share this post


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

  • Advertisement