How Use DirectX Draw a 2D Polygon which have a hole?

In C# We can Use SetClip() To draw 2d polygon which have a hole,

But In Direct It's seem very hard to complete.

[125 byte] By [hackbabu] at [2007-12-23]
# 1
If the hole is defined mathematically, you can use pixel shaders to clip() pixels that you don't want rendered. If it's defined by an artist, texturing is probably the way to go, combined with alpha blending or alphakill.
RichardFine at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2
Since you have to define the polygon in terms of triangles anyway, just make a few more triangles to define the shape with the hole in it.
TheZMan at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 3
thank you!! I will try it.
hackbabu at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 4
Please tell me how to use pixel shaders to clip() pixels.thanks!!
hackbabu at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...