setValueV2i method

void setValueV2i(
  1. RenderingContext gl,
  2. Vector v, [
  3. AngleTextures? textures
])

Implementation

void setValueV2i(RenderingContext gl, Vector v, [AngleTextures? textures]) {
  final cache = this.cache;
  if (arraysEqual(cache, v)) return;
  iv[0] = v.x.toInt();
  iv[1] = v.y.toInt();
  gl.uniform2iv(addr, iv);
  copyArray(cache, v.copyIntoArray());
}