rlLoadTexture method

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

Load texture data

Implementation

int rlLoadTexture(
  Uint8List? data,
  num width,
  num height,
  PixelFormat format,
  num mipmapCount,
) => run(
  () => _debugLabels.rlLoadTexture(data, width, height, format, mipmapCount),
  () => _flat.rlLoadTexture(
    data == null ? MemoryPointer.nullptr() : $.Uint8$.FromTypedList(data).cast(),
    width.toInt(),
    height.toInt(),
    format.value,
    mipmapCount.toInt(),
  ),
);