TextureAtom.ltwh constructor

TextureAtom.ltwh(
  1. int x,
  2. int y,
  3. int len,
  4. int hgt,
  5. String textureName,
  6. int tl,
  7. int th,
)

Implementation

TextureAtom.ltwh(
    int x, int y, this.len, this.hgt, this.textureName, this.tl, this.th) {
  tx1 = x / tl;
  tx2 = (x + len) / tl;
  ty1 = (y + hgt) / th;
  ty2 = y / th;
  frames = 1;
  fps = 1;
}