rlSetVertexAttributeDefault function

void rlSetVertexAttributeDefault(
  1. int locIndex,
  2. TypedData value,
  3. int attribType,
  4. int count,
)

Implementation

void rlSetVertexAttributeDefault(
  int locIndex, TypedData value, int attribType, 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.rlSetVertexAttributeDefault(locIndex, ptr.cast(), attribType, count);
});