setDataRegion method

void setDataRegion(
  1. TextureRegion textureRegion, {
  2. double tx = 0,
  3. double ty = 0,
})

Implementation

void setDataRegion(TextureRegion textureRegion, {double tx = 0, double ty = 0}) {
  this.textureRegion = textureRegion;
  data.set(1.0, 0.0, tx, ty);
}