Class Sprite
Defines a named sprite
public class Sprite
- Inheritance
-
Sprite
- Derived
- Inherited Members
Constructors
- Sprite(string, Texture2D)
Initializes a new instance of the Sprite class.
- Sprite(string, TextureRegion)
Initializes a new instance of the Sprite class.
Properties
- FlipHorizontally
Gets or Sets a value that indicates whether to flip this Sprite horizontally when rendering.
- FlipVertically
Gets or Sets a value that indicates whether to flip this Sprite vertically when rendering.
- LayerDepth
Gets or Sets the layer depth to render this Sprite at.
- SpriteEffects
Gets or Sets the Microsoft.Xna.Framework.Graphics.SpriteEffects to apply for vertical and horizontal flipping when rendering this Sprite.
- TextureRegion
Gets the source TextureRegion of this Sprite.
- Transparency
Gets or Sets the level of transparency, between 0.0f, and 1.0f, to apply when rendering this Sprite.
Methods
- Draw(SpriteBatch, Vector2)
Renders this Sprite.