rlUpdateTexture method

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

Implementation

void rlUpdateTexture(
  num id,
  num offsetX,
  num offsetY,
  num width,
  num height,
  RlPixelFormat format,
  Uint8List data,
) => run(
  () => 'rlUpdateTexture($id, $offsetX, $offsetY, $width, $height, ${format.name}, ${data.length})',
  () => rl.Rlgl.rlUpdateTexture(
    id.toInt(),
    offsetX.toInt(),
    offsetY.toInt(),
    width.toInt(),
    height.toInt(),
    format.value,
    refTypedListUInt8(data).cast(),
  ),
);