XNA 2D图像的Draw方法 和 图片旋转
public void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth);
一个参数一个参数过:
texture:需要渲染的2d纹理,
destinationRectangle:目标位置及大小,
sourc
原创
2010-12-21 17:14:00 ·
2349 阅读 ·
0 评论