readPixelsNormal method
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);
}