Table of Contents

Class Mesh

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("2cd906c2-12e2-11dc-9fed-001143a055f9")]
public class Mesh : Resource
Inheritance
Mesh
Inherited Members

Constructors

Mesh(RenderTarget)

Create a mesh that uses triangles to describe a shape.

public Mesh(RenderTarget renderTarget)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

Remarks

To populate a mesh, use its {{Open}} method to obtain an TessellationSink. To draw the mesh, use the render target's {{FillMesh}} method.

Mesh(RenderTarget, Triangle[])

Create a mesh that uses triangles to describe a shape and populates it with triangles.

public Mesh(RenderTarget renderTarget, Triangle[] triangles)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

triangles Triangle[]

An array of Triangle structures that describe the triangles to add to this mesh.

Mesh(nint)

public Mesh(nint nativePtr)

Parameters

nativePtr nint

Methods

Open()

Opens the mesh for population.

public TessellationSink Open()

Returns

TessellationSink

When this method returns, contains a pointer to a pointer to an TessellationSink that is used to populate the mesh. This parameter is passed uninitialized.

Operators

explicit operator Mesh(nint)

public static explicit operator Mesh(nint nativePtr)

Parameters

nativePtr nint

Returns

Mesh