コード例 #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
ファイル: Sprite_2D.cs プロジェクト: rdgoetz/LessThanOk
 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;
 }