how to color in object in c++ openGL

Dec 28, 2015 at 1:58pm
Hi, how can i put a color for my object in openGL

this is my code, can someone please tell me where i made mistake



i almost tried every thing i could find online but no luck

i think i am having a mistake that i have no idea where is it


( sorry i could't print the code here so here is the cpp file )
https://www.dropbox.com/s/2z9wl96w2us2uw0/PlanetDemo.cpp?dl=0
Dec 29, 2015 at 12:47pm
isnt line 23 should be "red" and not "reed"
Dec 29, 2015 at 12:56pm
isnt line 23 should be "red" and not "reed"


No it should be reed. He just declared it with that wrongful name.
Topic archived. No new replies allowed.