Jump to content
  • Advertisement
Sign in to follow this  

OpenGL Vertex Buffer Objects and my mesh class,,,,

This topic is 4060 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

Currently in my mesh class I create a seperate vertex buffer object for each mesh attribute (GL_VERTEX_ARRAY, GL_NORMAL_ARRAY, GL_COLOR_ARRAY, etc...). I did this because it made the class easier to design. I wondering if there is any significant performance boost that comes from combining all vertex attributes into one vertex buffer object. Also on a similar note, is it important to undo any changes one makes to the overall OpenGL state? To me it seems like a waste of time to call glDisableXXXX() since every function will set its desired state anyways. Also leftover states almost never have an effect on later calls.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!