[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Mesh

Class Mesh

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1Mesh

[Guid("2cd906c2-12e2-11dc-9fed-001143a055f9")]
public class Mesh : Resource, IDisposable, IUnknown
Inheritance
object
Mesh
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Mesh(IntPtr)

Initializes a new instance of the Mesh class.

public Mesh(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, Triangle[])

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

public static Mesh Create(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.

Returns

Mesh

Create(RenderTarget)

Create a mesh that uses triangles to describe a shape.

public static Mesh Create(RenderTarget renderTarget)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

Returns

Mesh

Remarks

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

Open()

HRESULT ID2D1Mesh::Open([Out] ID2D1TessellationSink** tessellationSink)

public ITessellationSink Open()

Returns

ITessellationSink

Operators

explicit operator Mesh(IntPtr)

Performs an explicit conversion from System.IntPtr to Mesh.

public static explicit operator Mesh(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Mesh