Microsoft DirectX 8.1 (Visual Basic)

D3DTRIPATCH_INFO

Describes a triangular high-order patch.

Type D3DTRIPATCH_INFO
    Basis As CONST_D3DBASISTYPE
    NumVertices As Long
    Order As CONST_D3DORDERTYPE
    StartVertexOffsetWidth As Long
End Type

Members

Basis
Member of the CONST_D3DBASISTYPE type, defining the basis type for the triangular high-order patch.
NumVertices
The number of vertices in the triangular high-order patch.
Order
Member of the CONST_D3DORDERTYPE type, defining the order type for the triangular high-order patch.
Value Number of Vertices
D3DORDER_BEZIER N/A
D3DORDER_CUBIC 10
D3DORDER_LINEAR 3
D3DORDER_QUADRATIC N/A
D3DORDER_QUINTIC 21

N/A - Not available. Not supported.

StartVertexOffsetWidth
Starting vertex offset width, in number of vertices.

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.

Currently works only with hardware vertex processing. Only D3DBASIS_BEZIER basis is supported D3DORDER_QUADRATIC is not supported

See Also

Direct3DDevice8.DrawTriPatch