Archived

This topic is now archived and is closed to further replies.

gimp

OpenGL [OPENGL] How to use Vertex Array in real app

Recommended Posts

I''ve seen a number of vertex array example but they all seem to use giant arrays of vertex''s. I''m probably wrong but I''ve been taking it slow with learning and trying to do things the right way. For example my app uses point classes. So, to build a model (say a cube) I''d create CPoint[8]. I can''t work out how thing would work with glVertexPointer though...(I''m starting to think of silly things like using stride of the size of the class -3*sizeof(float) Is my method wrong? Or this there a trick to making this work... Thanks! Chris

Share this post


Link to post
Share on other sites
seee the CVA extension here http://members.xoom.com/myBollux IIRC it draws the same object a star immediately , cva , and vertex arrays

Share this post


Link to post
Share on other sites