Advertisement

Polygon Class + VBO/DL == Moot?

Started by November 22, 2004 03:23 PM
1 comment, last by Shanjaq 20 years ago
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) );
Advertisement
aye, it does!

Now to find out if I'm wasting my time XD

This topic is closed to new replies.

Advertisement