RectanglePatchInformation Structure (Microsoft.DirectX.Direct3D)

Describes a rectangular high-order patch.

Definition

Visual Basic Public Structure RectanglePatchInformation
C# public struct RectanglePatchInformation 
C++ public value class RectanglePatchInformation sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
RectanglePatchInformation Initializes a new instance of the RectanglePatchInformation class.
ToString Obtains a string representation of the current instance.

Properties

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 information

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.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492