rlLoadTexture method

int rlLoadTexture(
  1. Uint8List? data,
  2. num width,
  3. num height,
  4. RlPixelFormat format,
  5. num mipmapCount,
)

Implementation

int rlLoadTexture(
  Uint8List? data,
  num width,
  num height,
  RlPixelFormat format,
  num mipmapCount,
) => run(
  () => 'rlLoadTexture(${data?.length}, $width, $height, $format, $mipmapCount)',
  () => rl.Rlgl.rlLoadTexture(
    data == null ? nullptr : rl.Temp.Uint8$.FromTypedList(data).cast(),
    width.toInt(),
    height.toInt(),
    format.value,
    mipmapCount.toInt(),
  ),
);