Sign in to follow this  

mesh class

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

hy. I would create a mesh class for vbo render. Each class have a vertex array buffer and an index array buffer. But in a real application i could have many meshes. many meshes what mean many instances of mesh class with different buffers. How is a good method for draw and store all my mesh? I think at an array of meshes object and.. while(!... CMeshVbo mesh; for(int i=0;i<countAllmeshes;i++) { mesh = arrayMeshes[i]; //now i have vertex buffer(mesh.VBOVertex) //and index buffer(mesh.VBOIndex) ? ? ? } what format have the index buffer and the vertex buffer? have a link? thanks

Share this post


Link to post
Share on other sites

This topic is 3336 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.

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