rlUpdateTexture method

  1. @override
void rlUpdateTexture(
  1. num id,
  2. num offsetX,
  3. num offsetY,
  4. num width,
  5. num height,
  6. PixelFormat format,
  7. Uint8List data,
)
override

Implementation

@override
void rlUpdateTexture(
  num id,
  num offsetX,
  num offsetY,
  num width,
  num height,
  PixelFormat format,
  Uint8List data,
) => run(
  () => RaylibDebugLabels.rlUpdateTexture(id, offsetX, offsetY, width, height, format, data),
  () => rl.Rlgl.rlUpdateTexture(
    id.toInt(),
    offsetX.toInt(),
    offsetY.toInt(),
    width.toInt(),
    height.toInt(),
    format.value,
    rl.Temp.Uint8$.FromTypedList(data).cast(),
  ),
);