Microsoft DirectX 9.0 SDK Update (October 2004)

RectanglePatchInformation Structure

Language:

Note: This documentation is preliminary and is subject to change.

Describes a rectangular high-order patch.

Definition

Visual Basic .NET Public Structure RectanglePatchInformation
C# public struct RectanglePatchInformation
Managed C++ public __value struct RectanglePatchInformation
JScript .NET In JScript .NET, you can use structures, but you cannot define your own.

Members Table

Method Description
RectanglePatchInformation Initializes a new instance of the RectanglePatchInformation class.
ToString Obtains a string representation of the current instance.
Property Description
BasisType Retrieves or sets a value of the BasisType enumeration that defines the basis type for the rectangular high-order patch.
Degree Retrieves or sets a value of the DegreeType enumeration that defines the degree for the rectangular patch.
Height Retrieves or sets the height of each vertex, in number of vertices.
StartVertexOffsetHeight Retrieves or sets the starting vertex offset height, in number of vertices.
StartVertexOffsetWidth Retrieves or sets the starting vertex offset width, in number of vertices.
Stride Retrieves or sets the width of the imaginary two-dimensional vertex array, which occupies the same space as the vertex buffer.
Width Retrieves or sets the width of each vertex, in number of vertices.

Remarks

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

Rectangle Patch Info

Each of the vertices in the vertex buffer is shown as a black dot. In this case, the vertex buffer has 20 vertices in it, 16 of which are in the rectangle patch. The stride (also called the pitch) is the number of vertices in the width of the vertex buffer (five in this case). The x offset to the first vertex is called the StartIndexVertexWidth and has a value of 1; the y offset is called the StartIndexVertexHeight and has a value of 0.

Structure Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center