예제 #1
0
        public Sprite_2D Add2DSprite(Texture2D texture, Rectangle source, String key)
        {
            Sprite_2D s = new Sprite_2D(texture, source);

            _sprites.Add(key, s);
            return(s);
        }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }