rlSetUniform function

void rlSetUniform(
  1. int locIndex,
  2. TypedData value,
  3. int uniformType,
  4. int count,
)

Implementation

void rlSetUniform(int locIndex, TypedData value, int uniformType, int count) =>
    ffi.using((arena) {
  final bytes = value.buffer.asUint8List(value.offsetInBytes, value.lengthInBytes);
  final ptr = arena<Uint8>(bytes.length);
  ptr.asTypedList(bytes.length).setAll(0, bytes);
  raylib.rlSetUniform(locIndex, ptr.cast(), uniformType, count);
});