Platformer.Sprite.draw C# (CSharp) Method

draw() public method

public draw ( SpriteBatch spriteBatch ) : void
spriteBatch SpriteBatch
return void
        public void draw(SpriteBatch spriteBatch)
        {
            Rectangle bounds = new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)size.Y);
            if (Texture != null)
                spriteBatch.Draw(Texture, bounds, sourceBounds, Color.White);
        }

Same methods

Sprite::draw ( SpriteBatch spriteBatch, int layerDepth ) : void