Microsoft DirectX 8.0 (Visual Basic)

Direct3DDevice8.DrawRectPatch

Draws a rectangular high-order patch using the currently set streams.

object.DrawRectPatch( _ 
    Handle As Long, _ 
    NumSegments As Single, _ 
    Surface As Any)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Handle
Handle to the rectangular high-order patch to draw.
NumSegments
Number of segments that each edge of the high-order primitive should be divided into when tessellated.
Surface
D3DRECTPATCH_INFO type, describing the rectangular high-order patch to draw.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.DeletePatch, Drawing Patches