uniform4fv method

dynamic uniform4fv(
  1. dynamic location,
  2. List<num> value
)

Implementation

uniform4fv(location, List<num> value) {
  int count = value.length;
  final valuePtr = calloc<Float>(count);
  List<double> _values = value.map((e) => e.toDouble()).toList().cast();
  valuePtr.asTypedList(count).setAll(0, _values);
  return glUniform4fv(location, count ~/ 4, valuePtr);
}