开发者

Creating arbitrary concave shapes in XNA/WP7 using sprites/polygons?

What's the best way to draw arbitrary textured shapes in WP7/XNA? I'm thinking I'm going to have to use poly开发者_开发知识库gons in orthographic projection but if there is a method to do this using textures I would much prefer that.


The best way is with textured polygons in an orthographic projection :)

You could pre-compute textures for sprites in the shapes you want - but that has its own problems. The first two I can think of are: 1) having to implement it! and 2) burning through a whole lot of texture-fetch, fill-rate and texture memory to draw a lot of blank space.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜