?/TD>
Microsoft DirectX 9.0

D3DTRIPATCH_INFO Structure


Describes a triangular high-order patch.

Syntax

typedef struct _D3DTRIPATCH_INFO {
    UINT StartVertexOffset;
    UINT NumVertices;
    D3DBASISTYPE Basis;
    D3DDEGREETYPE Degree;
} D3DTRIPATCH_INFO;

Members

StartVertexOffset
Starting vertex offset, in number of vertices.
NumVertices
Number of vertices.
Basis
Member of the D3DBASISTYPE enumerated type, which defines the basis type for the triangular high-order patch. The only valid value for this member is D3DBASIS_BEZIER.
Degree

Member of the D3DDEGREETYPE enumerated type, defining the degree type for the triangular high-order patch.

ValueNumber of vertices
D3DORDER_CUBIC10
D3DORDER_LINEAR3
D3DORDER_QUADRATICN/A
D3DORDER_QUINTIC21

N/A - Not available. Not supported.

Remarks

For example, the following diagram identifies the vertex order and segment numbers for a cubic Bézier triangle patch. The vertex order determines the segment numbers used by IDirect3DDevice9::DrawTriPatch. The offset is the number of bytes to the first triangle patch vertex in the vertex buffer.

Triangular high-order patch with nine vertices

Structure Information

Headerd3d9types.h
Minimum operating systems Windows 98

See Also

IDirect3DDevice9::DrawTriPatch


© 2002 Microsoft Corporation. All rights reserved.