Microsoft DirectX 8.0 (Visual Basic)

D3DRECTPATCH_INFO

Describes a rectangular high-order patch.

Type D3DRECTPATCH_INFO
    Basis As CONST_D3DBASISTYPE
    Height As Long
    Order As CONST_D3DORDERTYPE
    StartVertexOffsetHeight As Long
    StartVertexOffsetWidth As Long
    StrideBytes As Long
    Width As Long
End Type

Members

Basis
Member of the CONST_D3DBASISTYPE type, defining the basis type for the rectangular high-order patch.
Height
Height of each vertex, in number of vertices.
Order
Member of the CONST_D3DORDERTYPE type, defining the order type for the rectangular high-order patch.
StartVertexOffsetHeight
Starting vertex offset height, in number of vertices.
StartVertexOffsetWidth
Starting vertex offset width, in number of vertices.
StrideBytes
Stride between segments, in number of vertices.
Width
Width of each vertex, in number of vertices.

Remarks

To render a stream of individual rectangular patches (non-mosaic), you should interpret your geometry as a long narrow (1 × N) rectangular patch. The D3DRECTPATCH_INFO structure for such a strip (cubic bézier) would be set up in the following manner.

Dim i As Integer
Dim RectInfo As D3DRECTPATCH_INFO

With D3DRECTPATCH_INFO
    .Width = 4
    .Height = 4
    .Stride = 4
    .Basis = D3DBASIS_BEZIER
    .Order = D3DORDER_CUBIC
    .StartVertexOffsetWidth = 0
    .StartVertexOffsetHeight = 4 * i  ' The variable i is the index of the patch you want to render.
End With

See Also

Direct3DDevice8.DrawRectPatch