• Advertisement
Sign in to follow this  

mesh class

This topic is 3405 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; //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
Advertisement
I think what you need is a scene graph.

Read this: http://www.gamedev.net/reference/programming/features/scenegraph/

Share this post


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

  • Advertisement