예제 #1
0
        public Sprite(QuadSource source, Bounds2D sourceRect = null, Alignments alignment = Alignments.Center) :
            base(alignment)
        {
            this.source     = source;
            this.sourceRect = sourceRect;

            data = new float[QuadSize];
        }
예제 #2
0
        public Sprite(QuadSource source, SourceRect sourceRect, Alignments alignment = Alignments.Center,
                      SpriteModifiers mods = SpriteModifiers.None) : base(alignment, mods)
        {
            this.source     = source;
            this.sourceRect = sourceRect;

            data = new float[QuadSize];
        }
예제 #3
0
 public Sprite(QuadSource source, ivec2 origin) : this(source, new SourceRect(), Alignments.Custom)
 {
     this.origin = origin;
 }
예제 #4
0
 public Sprite(QuadSource source, Alignments alignment = Alignments.Center,
               SpriteModifiers mods = SpriteModifiers.None) : this(source, new SourceRect(), alignment, mods)
 {
 }