Hey.
I just started out learning openGL and I am trying to make a function to make 3d cubes with + set their color.
However I ran into a little problem that I hope someone can help out with...now..I got this function :
The problem is that my compiler tells me that glColor3f takes 3 parrameters, wich is true, however i just want it to take one, the one my function takes.Code:void cube(char color1[256])
{
glColor3f(color1[256]);
(+ all the rest for the cube)
}
Hope someone understand what I mean :)