fliXNA_xbox.FlxParticle.draw C# (CSharp) Méthode

draw() public méthode

public draw ( ) : void
Résultat void
        public override void draw()
        {
            if (visible)
            {
                if (texture != null)
                {
                    Rectangle rect = new Rectangle((int)sourceRect.x, (int)sourceRect.y, (int)sourceRect.width, (int)sourceRect.height);
                    FlxG.spriteBatch.Draw(texture, getVec2(), rect, _color * alpha, angle, new Vector2(width/2, height/2), scale.getVec2(),  SpriteEffects.None,  0f);
                }
            }
        }