UpdateTextureRec method

  1. @override
void UpdateTextureRec(
  1. Texture texture,
  2. Rectangle rec,
  3. MemoryPointer<RVoid> pixels
)
override

Update GPU texture rectangle with new data

Implementation

@override
void UpdateTextureRec(
  Texture texture,
  Rectangle rec,
  MemoryPointer<RVoid> pixels,
) => _ffi.UpdateTextureRec(
  Texture$.Ref1(texture).asNativePointer<TextureC>().ref,
  Rectangle$.Ref1(rec).asNativePointer<RectangleC>().ref,
  pixels.asNativePointer(),
);