Original Post
Hi,
This is part of my vector class:
CVector(float newX=0.0f, float newY=0.0f, float newZ=0.0f)
{ x=newX; y=newY; z=newZ; }
CVector(const CVector &rhs)
{ x=rhs.x; y=rhs.y; z=rhs.z; }
~CVector() {}
this is how I define a vertex position:
CVector position;and this is how I use it:
glVertexPointer(3, GL_FLOAT, sizeof(vertex_t), position);however I cannot use this CVector here:
error C2664: ''glVertexPointer'' : cannot convert parameter 4 from ''CVector'' to ''const GLvoid *''I understand... but how can I make something like this work? Thanks