Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpriteVertices"/> class.
 /// </summary>
 /// <param name="sprite">The sprite.</param>
 public SpriteVertices(GorgonSpriteContent sprite)
 {
     UpperLeft  = new SpriteVertex(sprite, RectangleCorner.UpperLeft);
     UpperRight = new SpriteVertex(sprite, RectangleCorner.UpperRight);
     LowerLeft  = new SpriteVertex(sprite, RectangleCorner.LowerLeft);
     LowerRight = new SpriteVertex(sprite, RectangleCorner.LowerRight);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpriteVertex"/> struct.
 /// </summary>
 /// <param name="sprite">The sprite content to use.</param>
 /// <param name="corner">Corner for the sprite rectangle.</param>
 public SpriteVertex(GorgonSpriteContent sprite, RectangleCorner corner)
 {
     _sprite = sprite;
     _corner = corner;
 }