uniformMatrix2fv method

void uniformMatrix2fv(
  1. UniformLocation location,
  2. bool transpose,
  3. List<double> values
)

Implementation

void uniformMatrix2fv(UniformLocation location, bool transpose, List<double> values) {
  startCheck('uniformMatrix2fv');
  var arrayPointer = floatListToArrayPointer(values);
  gl.glUniformMatrix2fv(location.id, values.length ~/ 4, transpose ? 1 : 0, arrayPointer);
  checkError('uniformMatrix2fv');
  calloc.free(arrayPointer);
}