Jump to content
  • Advertisement


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


Dumass IndexBuffer Question

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

Sorry to ask this but Im having trouble understanding some of the parameters for DrawIndexedPrimative Taken from the sdk docs Type: Im fine with this BaseVertexIndex: Not too sure MinIndex: Not too sure NumVertices: Number of indices that I will use StartIndex: I guess where in the index buffer to start PrimitiveCount: Number of triangles etc drawn As you can see its the 2nd and 3rd paramters I have a problems with. Could someone give me a quick run down on what they do? Thanks

Share this post

Link to post
Share on other sites
*Dumass answer*

[in] Member of the D3DPRIMITIVETYPE enumerated type, describing the type of primitive to render. D3DPT_POINTLIST is not supported with this method. See Remarks.
[in] Offset from the start of the index buffer to the first vertex index.
[in] Minimum vertex index for vertices used during this call.
[in] Number of vertices used during this call, starting from BaseVertexIndex + MinIndex
[in] Location in the index array to start reading vertices.
[in] Number of primitives to render. The number of vertices used is a function of the primitive count and the primitive type. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the D3DCAPS9 structure.

Base: bytes offset to the first vertex?


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!