gldtUniformMatrix4fv function

void gldtUniformMatrix4fv(
  1. int location,
  2. int count,
  3. int transpose,
  4. Float32List value,
)

Implementation

void gldtUniformMatrix4fv(
    int location, int count, int transpose, Float32List value) {
  var valuePointer = calloc<Float>(value.length);
  for (var i = 0; i < value.length; i++) {
    (valuePointer + i).value = value[i];
  }
  glUniformMatrix4fv(location, count, transpose, valuePointer);
  calloc.free(valuePointer);
}