ID2D1RenderTarget::FillMesh method

Paints the interior of the specified mesh.

Syntax

void FillMesh(
  ID2D1Mesh  *mesh,
  ID2D1Brush *brush
);

Parameters

mesh

Type: ID2D1Mesh*

The mesh to paint.

brush

Type: ID2D1Brush*

The brush used to paint the mesh.

Return Value

This method does not return a value.

Remarks

The current antialias mode of the render target must be D2D1_ANTIALIAS_MODE_ALIASED when FillMesh is called. To change the render target's antialias mode, use the SetAntialiasMode method.

FillMesh does not expect a particular winding order for the triangles in the ID2D1Mesh; both clockwise and counter-clockwise will work.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillMesh) failed, check the result returned by the ID2D1RenderTarget::EndDraw or ID2D1RenderTarget::Flush methods.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See Also

D2D1_ANTIALIAS_MODE_ALIASED

ID2D1RenderTarget

SetAntialiasMode