2D Triangle in SlimDX
How to draw a triangle using SlimDX's Direct2D interface given triangle vertices are given in pixel coordina开发者_开发技巧tes?
We just recently added a sample covering this topic to our repository. The relevant source file is here.
You want to draw primitive with "Transformed" coordinates.
Transformed meams they are already in Screen X,Y so DirectX wont project them.
精彩评论