. "Am I close at all?Returning the address of a local variable will not bring anything good.What you seem to need is a function that takes a Vec3 and calls glVertex3f with its coordinates." . . .