• Advertisement

Archived

This topic is now archived and is closed to further replies.

This topic is 6044 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

ok im pretty new at opengl programming, but im making a little test program but i want to be able to allow the user to enter a certian rgb color for the background of his choice, but when i make the clear color the rgb color that i entered it doesnt show up as the color i chose, for example: 55, 86, 93 is the color i entered but it doesnt show up as the dark green i chose, but in order to get that color to show up correctly i have to use: .02, .032, .035 is there a way to convert the two rgb colors or am i missing something? thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
yeah that does work but im trying to make make the clear color (glClearColor) the rgb value the user specifies, any idea on how to do that? thanks for the help btw

Share this post


Link to post
Share on other sites
I think the clear color has to be a float you''ll have to divide you values by 255 to get the float i guess

Share this post


Link to post
Share on other sites

  • Advertisement