Microsoft DirectX 8.1 (C++)

D3DTRIPATCH_INFO

Describes a triangular high-order patch.

typedef struct _D3DTRIPATCH_INFO {
    UINT                StartVertexOffset;
    UINT                NumVertices;
    D3DBASISTYPE        Basis;
    D3DORDERTYPE        Order;
} D3DTRIPATCH_INFO;

Members

StartVertexOffset
Starting vertex offset, in number of vertices.
NumVertices
Number of vertices.
Basis
Member of the D3DBASISTYPE enumerated type, defining the basis type for the triangular high-order patch. The only valid value for this member is D3DBASIS_BEZIER.
Order
Member of the D3DORDERTYPE enumerated type, defining the order type for the triangular high-order patch.
Value Number of Vertices
D3DORDER_CUBIC 10
D3DORDER_LINEAR 3
D3DORDER_QUADRATIC N/A
D3DORDER_QUINTIC 21

N/A - Not available. Not supported.

Remarks

The following diagram identifies the parameters that specify a triangle patch.

The integers values indicate how the patch vertex data is organized in the vertex buffer. In this case, the offset to the first vertex is zero because the first patch vertex is the first data point in the vertex buffer.

Requirements

  Header: Declared in D3d8types.h.

See Also

IDirect3DDevice8::DrawTriPatch