开发者

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

开发者 https://www.devze.com 2023-01-31 04:22 出处:网络
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 usin

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

精彩评论

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