/// <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); }
/// <summary> /// Function called when a vertex for the sprite is updated. /// </summary> /// <param name="vertex">Vertex that was updated.</param> public void OnVertexUpdated(SpriteVertex vertex) { NotifyPropertyChanged("Vertex", vertex); }