views:

516

answers:

2

How to draw a triangle using SlimDX's Direct2D interface given triangle vertices are given in pixel coordinates?

+1  A: 

You want to draw primitive with "Transformed" coordinates.

Transformed meams they are already in Screen X,Y so DirectX wont project them.

Neil N
Not really what I was looking form - I'm using Direct2D so there is no projection at all.
Bartłomiej Siwek
Yes, thats what Transformed coordinates are, as if you already transformed them to 2D. Even if you are just using 2d coords to begin with, it's the same thing
Neil N
+3  A: 

We just recently added a sample covering this topic to our repository. The relevant source file is here.

Josh Petrie