Original Post
how would i get my vector class to return a valid variable(s) to use in OpenGL.
eg.
class Vector{
public:
float x, y, z;
blah...
};
how can i make a function that makes it possible to use my vector class like this:
Vector vec;
glVertex3f(vec);
or
glVertex3f(vec.ReturnGL3F)
to be used instead of
glVertex3f(vec.x, vec.y, vec.z);
i''ve tried so many different ways but i just cant get it to work.