D3DHAL_DP2SETINDICES
This structure is used to set the current index buffer for D3dDrawPrimitives2.
typedef struct _D3DHAL_DP2SETINDICES {
DWORD dwVBHandle;
DWORD dwStride;
} D3DHAL_DP2SETINDICES, *LPD3DHAL_DP2SETINDICES;
Members
- dwVBHandle
Specifies the surface handle associated with this surface through a call to D3dCreateSurfaceEx. - dwStride
Specifies the size of the indices contained in the index buffer and will have the value 2 if the indices are 16-bit, or 4 if the indices are 32-bit quantities.
Remarks
A handle value of zero is valid and indicates that the current index buffer is cleared. Subsequent attempts to draw indexed primitives (before a new current index buffer is established through another D3DDP2OP_SETINDICES token) should be handled by the driver such that a crash does not occur. The debug version of your driver should display informative messages to the debug output stream when this error condition is detected.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: D3dhal.h.
See Also
D3dDrawPrimitives2 | D3dCreateSurfaceEx | D3DDP2OP_SETINDICES | D3DHAL_XXX Structures
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.