Jump to content
  • Advertisement

Archived

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

gimp

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

This topic is 6497 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!