public Sprite_2D Add2DSprite(Texture2D texture, Rectangle source, String key) { Sprite_2D s = new Sprite_2D(texture, source); _sprites.Add(key, s); return(s); }
internal Sprite_2D(Sprite_2D sprite) { this.Source = new Rectangle(sprite.Source.X, sprite.Source.Y, sprite.Source.Width, sprite.Source.Height) ; this.Texture = sprite.Texture; this.Color = sprite.Color; this.Scale = sprite.Scale; this.Alpha = sprite.Alpha; this.Centered = sprite.Centered; this.Rotation = sprite.Rotation; }
internal Sprite_2D(Sprite_2D sprite) { this.Source = new Rectangle(sprite.Source.X, sprite.Source.Y, sprite.Source.Width, sprite.Source.Height); this.Texture = sprite.Texture; this.Color = sprite.Color; this.Scale = sprite.Scale; this.Alpha = sprite.Alpha; this.Centered = sprite.Centered; this.Rotation = sprite.Rotation; }