WindowsGame1.Sprite.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public void Draw(SpriteBatch theSpriteBatch)
        {
            theSpriteBatch.Draw(tex, pos,
                new Rectangle(0, 0, tex.Width, tex.Height),
                Color.White, 0.0f, Vector2.Zero, Scale, SpriteEffects.None, 0);
        }

Usage Example

Ejemplo n.º 1
0
 public void DrawTest()
 {
     Sprite target = new Sprite(); // TODO: Initialize to an appropriate value
     SpriteBatch theSpriteBatch = null; // TODO: Initialize to an appropriate value
     target.Draw(theSpriteBatch);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }