BaseMesh.Clone Method
Clones, or copies, a mesh object.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Syntax
'Declaration
Public Function Clone ( _
options As MeshFlags, _
vertexFormat As VertexFormats, _
device As Device _
) As Mesh
'Usage
Dim instance As BaseMesh
Dim options As MeshFlags
Dim vertexFormat As VertexFormats
Dim device As Device
Dim returnValue As Mesh
returnValue = instance.Clone(options, vertexFormat, device)
public Mesh Clone (
MeshFlags options,
VertexFormats vertexFormat,
Device device
)
public:
Mesh^ Clone (
MeshFlags options,
VertexFormats vertexFormat,
Device^ device
)
public Mesh Clone (
MeshFlags options,
VertexFormats vertexFormat,
Device device
)
public function Clone (
options : MeshFlags,
vertexFormat : VertexFormats,
device : Device
) : Mesh
Not applicable.
Parameters
- options
Mesh creation options, as specified with one or more MeshFlags flags.
- vertexFormat
A GraphicsStream that contains the mesh data to duplicate.
- device
The Device associated with the mesh.
Return Value
A new Mesh that is a clone created with the specified options and flexible vertex format.
Exceptions
Exception type | Condition |
---|---|
The call is invalid, such as an invalid method parameter. |
|
Insufficient 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
BaseMesh Class
BaseMesh Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace