Polygon Class + VBO/DL == Moot?
I'm working on a polygon class which is an extension of NeHe Article 07
http://nehe.gamedev.net/data/articles/article.asp?article=07
But I'm thinking, why would I store mesh data in a class that's likely to be stored in System Memory when I plan to dump the vertices into a Vertex Buffer Object or Display List?
On a side note, the code in the article does not compile, using the optimized rendering member function I get the following error:
cannot convert `VERTEX*' to `const GLfloat*' for argument `1
for the line that says this:
glVertex3fv(&m_pVertices[ptrIndex++->nVertex]);
does this work instead?
glVertex3fv( &(m_pVertices[ptrIndex++->nVertex].x) );
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement