public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, System.Vector2 position = null, Rectangle destinationRectangle = null, Rectangle sourceRectangle = null, System.Vector2 origin = null, float rotation = 0f, System.Vector2 scale = null, System.Color color = null, SpriteEffects effects = SpriteEffects.None, float layerDepth = 0f ) : void | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | A texture. |
position | System.Vector2 | The drawing location on screen or null if |
destinationRectangle | Rectangle | The drawing bounds on screen or null if |
sourceRectangle | Rectangle | An optional region on the texture which will be rendered. If null - draws full texture. |
origin | System.Vector2 | An optional center of rotation. Uses |
rotation | float | An optional rotation of this sprite. 0 by default. |
scale | System.Vector2 | An optional scale vector. Uses |
color | System.Color | An optional color mask. Uses |
effects | SpriteEffects | The optional drawing modificators. |
layerDepth | float | An optional depth of the layer of this sprite. 0 by default. |
return | void |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle destinationRectangle, System.Color color ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle destinationRectangle, Rectangle sourceRectangle, System.Color color ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle destinationRectangle, Rectangle sourceRectangle, System.Color color, float rotation, System.Vector2 origin, SpriteEffects effects, float layerDepth ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, System.Vector2 position, System.Color color ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, System.Vector2 position, Rectangle sourceRectangle, System.Color color ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, System.Vector2 position, Rectangle sourceRectangle, System.Color color, float rotation, System.Vector2 origin, System.Vector2 scale, SpriteEffects effects, float layerDepth ) : void | |
SpriteBatch::Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, System.Vector2 position, Rectangle sourceRectangle, System.Color color, float rotation, System.Vector2 origin, float scale, SpriteEffects effects, float layerDepth ) : void |