copyFrom method

void copyFrom(
  1. GTexture other
)

Copies the properties of another GTexture to this one.

Implementation

void copyFrom(GTexture other) {
  root = other.root;
  color = other.color;
  actualWidth = other.actualWidth;
  actualHeight = other.actualHeight;
  sourceRect = other.sourceRect;
  pivotX = other.pivotX;
  pivotY = other.pivotY;
  scale = other.scale;
}