Sign in to follow this  
giugio

mesh class

Recommended Posts

giugio    246
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

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