setFrom method

void setFrom(
  1. Sprite other
)

Implementation

void setFrom(Sprite other) {
  texture = other.texture;
  position.setFrom(other.position);
  originX = other.originX;
  originY = other.originY;
  opacity = other.opacity;
  rotation = other.rotation;
  scale = other.scale;
  tint = other.tint;
  flip = other.flip;
  mask = other.mask;
}