Sign in to follow this  
fpsgamer

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

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

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