Exemplo n.º 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];
        }
Exemplo n.º 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];
        }
Exemplo n.º 3
0
 public Sprite(QuadSource source, ivec2 origin) : this(source, new SourceRect(), Alignments.Custom)
 {
     this.origin = origin;
 }
Exemplo n.º 4
0
 public Sprite(QuadSource source, Alignments alignment = Alignments.Center,
               SpriteModifiers mods = SpriteModifiers.None) : this(source, new SourceRect(), alignment, mods)
 {
 }