Jump to content
  • Advertisement
Sign in to follow this  
giugio

mesh class

This topic is 3554 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
×

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!