uniform2iv method

void uniform2iv(
  1. UniformLocation location,
  2. List<int> v
)

Implementation

void uniform2iv(UniformLocation location, List<int> v){
  int count = v.length;
  final valuePtr = calloc<Int32>(count);
  valuePtr.asTypedList(count).setAll(0, v);
  gl.glUniform2iv(location.id, count ~/ 2, valuePtr);
  calloc.free(valuePtr);
  checkError('uniform2iv');
}