I am trying to pass an array containing an X, Y, and Z coordinate (type float) to the function glTranslatef() however I can't figure out a way to accomplish this.
As an example of what I am trying to accomplish;
float xyz[3] = {3,2,1};
glTranslatef(xyz);
I get the following error whenever I try to attempt something like this
cannot convert ‘float*’ to ‘GLfloat {aka float}’ for argument ‘1’ to ‘void glTranslatef(GLfloat, GLfloat, GLfloat)’
I have tried searching all over google but I couldn't find what I was looking for.
func(*args)syntax?