Click here to Skip to main content
15,898,792 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi ,

i face a problem when drawing polygon using drawuser primitive method using linelist. its work properly but when we want to fill theses polygon any type like tringlelist or fan. and one algorithm ear cut..but unable to fill ...
Posted
Updated 24-Oct-13 1:44am
v3
Comments
Sergey Alexandrovich Kryukov 24-Oct-13 22:27pm    
Language? Platform? Please tag what's relevant.
And http://www.whathaveyoutried.com so far? What's the problem?
—SA
vermavivek 25-Oct-13 2:42am    
C# language, in .net platform polygon ..
m_Device.DrawUserPrimitives(PrimitiveType.TriangleList, lstcv.Count / 3, lstcv.ToArray());
Sergey Alexandrovich Kryukov 25-Oct-13 3:07am    
You really want to tag those detail (via "Improve question", above). You are the one who is interested in that the most.
—SA

1 solution

As you are using .NET and C#, I would recommend not to use DirectX directly (pun unintended :-)) at all.

Instead, use WPF. It is based on DirectX and uses its rich features and hardware acceleration; but the API is very well wrapped, so WPF development is easier and more maintainable, by the order of magnitude.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900