TextureAtom.int constructor

TextureAtom.int(
  1. int x1,
  2. int y1,
  3. int x2,
  4. int y2,
  5. String textureName,
  6. int tl,
  7. int th,
)

Implementation

TextureAtom.int(
    int x1, int y1, int x2, int y2, this.textureName, this.tl, this.th) {
  tx1 = x1 / tl;
  tx2 = x2 / tl;
  ty1 = y1 / th;
  ty2 = y2 / th;
  frames = 1;
  fps = 1;
  len = (x2 - x1).abs();
  hgt = (y2 - y1).abs();
  ix1 = x1;
  iy1 = y1;
  ix2 = x2;
  iy2 = y2;
}