public Sprite(QuadSource source, Bounds2D sourceRect = null, Alignments alignment = Alignments.Center) : base(alignment) { this.source = source; this.sourceRect = sourceRect; data = new float[QuadSize]; }
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]; }
public Sprite(QuadSource source, ivec2 origin) : this(source, new SourceRect(), Alignments.Custom) { this.origin = origin; }
public Sprite(QuadSource source, Alignments alignment = Alignments.Center, SpriteModifiers mods = SpriteModifiers.None) : this(source, new SourceRect(), alignment, mods) { }