how to color in object in c++ openGL

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
isnt line 23 should be "red" and not "reed"
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.