开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜