[]
ID2D1Mesh
[Guid("2cd906c2-12e2-11dc-9fed-001143a055f9")]
public class Mesh : Resource, IDisposable, IUnknown
Initializes a new instance of the Mesh class.
public Mesh(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Create a mesh that uses triangles to describe a shape and populates it with triangles.
public static Mesh Create(RenderTarget renderTarget, Triangle[] triangles)
renderTarget
RenderTargetan instance of RenderTarget
triangles
Triangle[]An array of Triangle structures that describe the triangles to add to this mesh.
Create a mesh that uses triangles to describe a shape.
public static Mesh Create(RenderTarget renderTarget)
renderTarget
RenderTargetan instance of RenderTarget
To populate a mesh, use its {{Open}} method to obtain an ITessellationSink. To draw the mesh, use the render target's {{FillMesh}} method.
HRESULT ID2D1Mesh::Open([Out] ID2D1TessellationSink** tessellationSink)
public ITessellationSink Open()
Performs an explicit conversion from System.IntPtr to Mesh.
public static explicit operator Mesh(IntPtr nativePointer)
nativePointer
System.IntPtr