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.
- options
Type: Microsoft.WindowsMobile.DirectX.Direct3D.MeshFlags
One or more flags from the MeshFlags enumeration that specify creation options for the mesh.
- vertexFormat
Type: Microsoft.WindowsMobile.DirectX.Direct3D.VertexFormats
One or more flags from the VertexFormats enumeration that specify the format of the mesh vertices.
- device
Type: Microsoft.WindowsMobile.DirectX.Direct3D.Device
A Device object that represents the device associated with the mesh.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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