2D Triangle in SlimDX
Question
How to draw a triangle using SlimDX's Direct2D interface given triangle vertices are given in pixel coordinates?
Solution
We just recently added a sample covering this topic to our repository. The relevant source file is here.
OTHER TIPS
You want to draw primitive with "Transformed" coordinates.
Transformed meams they are already in Screen X,Y so DirectX wont project them.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow