예제 #1
0
 public SpriteInfo(TextureOrAnim Sprite, Vector2 Size, Vector2 Offset, Color Tint)
 {
     this.Sprite         = Sprite;
     this.Size           = Size;
     this.Offset         = Offset;
     this.Tint           = Tint;
     this.RelativeOffset = false;
 }
예제 #2
0
 public SpriteInfo(TextureOrAnim Sprite, Vector2 Size)
 {
     this.Sprite         = Sprite;
     this.Size           = Size;
     this.Offset         = Vector2.Zero;
     this.Tint           = Color.White;
     this.RelativeOffset = false;
 }
예제 #3
0
 public LineSpriteInfo(TextureOrAnim Sprite, float Width, float RepeatWidth)
 {
     this.Sprite        = Sprite;
     this.Width         = Width;
     this.RepeatWidth   = RepeatWidth;
     this.Dir           = 0;
     this.Tint          = Vector4.One;
     this.BlendAddRatio = 0;
 }
예제 #4
0
 public LineSpriteInfo(TextureOrAnim Sprite, float Width, float RepeatWidth, int Dir, Vector4 Tint, float BlendAddRatio)
 {
     this.Sprite        = Sprite;
     this.Width         = Width;
     this.RepeatWidth   = RepeatWidth;
     this.Dir           = Dir;
     this.Tint          = Tint;
     this.BlendAddRatio = BlendAddRatio;
 }
예제 #5
0
        public LineSpriteInfo(TextureOrAnim End1, TextureOrAnim Body, TextureOrAnim End2, float Width)
        {
            DrawEndPoints = true;
            this.End1     = End1;
            this.End2     = End2;
            this.Sprite   = Body;

            this.Width       = Width;
            this.RepeatWidth = Width * (float)Body.MyTexture.Height / (float)Body.MyTexture.Width;

            this.Dir           = 0;
            this.Tint          = Vector4.One;
            this.BlendAddRatio = 0;
        }