Mesh.Mesh Constructor
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
)
public Mesh (
int numFaces,
int numVertices,
MeshFlags options,
VertexFormats vertexFormat,
Device device
)
public function Mesh (
numFaces : int,
numVertices : int,
options : MeshFlags,
vertexFormat : VertexFormats,
device : Device
)
Not applicable.
Parameters
- numFaces
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
Number of vertices for the mesh. This parameter must be greater than 0.
- options
One or more flags from the MeshFlags enumeration that specify creation options for the mesh.
- vertexFormat
One or more flags from the VertexFormats enumeration that specify the format of the mesh vertices.
- device
A Device object that represents the device associated with the mesh.
Exceptions
Exception type | Condition |
---|---|
The method call is invalid. For example, a method's parameter may contain an invalid value. |
|
Direct3D could not allocate sufficient memory to complete the call. |
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Mesh Class
Mesh Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace