Exemplo n.º 1
0
 /// <summary>
 /// Copies all state data to the specified target.
 /// </summary>
 /// <param name="target"></param>
 public void CopyTo(CanvasState target)
 {
     target.batchInfo       = this.batchInfo;
     target.uvGenRect       = this.uvGenRect;
     target.texBaseSize     = this.texBaseSize;
     target.color           = this.color;
     target.depthOffset     = this.depthOffset;
     target.transformAngle  = this.transformAngle;
     target.transformHandle = this.transformHandle;
     target.transformScale  = this.transformScale;
     target.UpdateTransform();
 }
Exemplo n.º 2
0
 public CanvasState(CanvasState other)
 {
     other.CopyTo(this);
 }
Exemplo n.º 3
0
 public CanvasState(CanvasState other)
 {
     this.canvas = other.canvas;
     other.CopyTo(this);
 }