Sign in to follow this  
Shanjaq

Polygon Class + VBO/DL == Moot?

Recommended Posts

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]);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this