readPixelsNormal method

void readPixelsNormal(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int format,
  6. int type,
  7. Uint8List data,
)

Implementation

void readPixelsNormal(int x, int y, int width, int height, int format,
    int type, Uint8List data) {
  final dataPtr = toPointer(data);
  gl.glReadPixels(x, y, width, height, format, type, dataPtr);
  Uint8List _data = (dataPtr as Pointer<Uint8>).asTypedList(data.length);
  data.setAll(0, _data);
  calloc.free(dataPtr);
}