Esempio 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();
 }
Esempio n. 2
0
 public CanvasState(CanvasState other)
 {
     other.CopyTo(this);
 }
Esempio n. 3
0
 public CanvasState(CanvasState other)
 {
     this.canvas = other.canvas;
     other.CopyTo(this);
 }