Mesh Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the Mesh class.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

Syntax

'Declaration
Public Sub New ( _
    numFaces As Integer, _
    numVertices As Integer, _
    options As MeshFlags, _
    vertexFormat As VertexFormats, _
    device As Device _
)
'Usage
Dim numFaces As Integer
Dim numVertices As Integer
Dim options As MeshFlags
Dim vertexFormat As VertexFormats
Dim device As Device

Dim instance As New Mesh(numFaces, _
    numVertices, options, vertexFormat, _
    device)
public Mesh(
    int numFaces,
    int numVertices,
    MeshFlags options,
    VertexFormats vertexFormat,
    Device device
)
public:
Mesh(
    int numFaces, 
    int numVertices, 
    MeshFlags options, 
    VertexFormats vertexFormat, 
    Device^ device
)
new : 
        numFaces:int * 
        numVertices:int * 
        options:MeshFlags * 
        vertexFormat:VertexFormats * 
        device:Device -> Mesh

Parameters

  • numFaces
    Type: System.Int32
    Number of faces for the mesh. The valid range is greater than 0 and one less than the maximum because the last index is reserved. The maximum is typically 65534.
  • numVertices
    Type: System.Int32
    Number of vertices for the mesh. This parameter must be greater than 0.

Exceptions

Exception Condition
InvalidCallException

The method call is invalid. For example, a method's parameter may contain an invalid value.

OutOfMemoryException

Direct3D could not allocate sufficient memory to complete the call.

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Mesh Class

Mesh Members

Microsoft.WindowsMobile.DirectX.Direct3D Namespace