Jump to content
  • Advertisement
Sign in to follow this  
KanoT

How to draw multiple meshes?

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

Hi guys. Im start using SlimDX recently, And I have some questions for Draw vertices.

How to draw multiple meshes? In tutorial 3 Simple triangle, To draw triangle, I set vertice buffer to context, and call context.draw() method. But to multiple vertices, What can I do?

Create new context? or call SetVertexBuffers to each meshes?

Share this post


Link to post
Share on other sites
Advertisement
I don't know anything about slimdx, but i can tell you, in directx, if you want to draw objects using multiple vertex and index buffers, you have to set the vertex and index buffers you want to draw before each draw call.

Share this post


Link to post
Share on other sites

I don't know anything about slimdx, but i can tell you, in directx, if you want to draw objects using multiple vertex and index buffers, you have to set the vertex and index buffers you want to draw before each draw call.


Thanks. I succeed to draw multiple objects!

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!