Share via


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

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

InvalidCallException

The call is invalid, such as an invalid method parameter.

OutOfMemoryException

Insufficient 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 .

Platforms

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

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

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

BaseMesh Class
BaseMesh Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace