in opengl the is a corresponding fucntion glVertex3fv which takes a
pointer to an array where u have stored ur x,y,z co-ordinates.
try using it here's an example
int vert[] = {1,1,1};
glVertex3iv(vert);
in case of float just replace i by f in glVertex*v;
|