Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

sj

Vertex offset

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

I''ve heard that I should use one rather than multiple vertex buffers for my vertices and pass in the appropriate vertex offset for each set of geometry that I wish to change (e.g. move something with a matrix), but I don''t know how to do that. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
1. look at the parameters for DrawPrimitive, DrawIndexedPrimitive etc - e.g. MinIndex, NumVertices, StartIndex (StartVertexIndex), PrimitiveCount.

2. look at the BaseVertexIndex parameter on SetIndices() [if you''re using indexed primitives].

--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites

  • 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!