Jump to content
  • Advertisement

Archived

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

Drazgal

Dumass IndexBuffer Question

This topic is 5530 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
Advertisement
*Dumass answer*

Type
[in] Member of the D3DPRIMITIVETYPE enumerated type, describing the type of primitive to render. D3DPT_POINTLIST is not supported with this method. See Remarks.
BaseVertexIndex
[in] Offset from the start of the index buffer to the first vertex index.
MinIndex
[in] Minimum vertex index for vertices used during this call.
NumVertices
[in] Number of vertices used during this call, starting from BaseVertexIndex + MinIndex
StartIndex
[in] Location in the index array to start reading vertices.
PrimitiveCount
[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?


.lick

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!