setValueV2i method

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

Implementation

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