UpdateTextureRec method

void UpdateTextureRec(
  1. TextureD texture,
  2. RectangleD rec,
  3. Uint8List pixels
)

Update GPU texture rectangle with new data

Implementation

void UpdateTextureRec(
  TextureD texture,
  RectangleD rec,
  Uint8List pixels,
) => run(
  () => _debugLabels.UpdateTextureRec(texture, rec, pixels),
  () => _flat.UpdateTextureRec(
    texture,
    rec,
    $.Uint8$.Array(pixels).cast(),
  ),
);