glReadPixels

actual fun glReadPixels(x: Int, y: Int, width: Int, height: Int, format: PixelFormat): ByteArray

Reads pixels from frame buffer.

expect fun glReadPixels(x: Int = 0, y: Int = 0, width: Int, height: Int, format: PixelFormat = PixelFormat.RGBA): ByteArray

Reads pixels from frame buffer.

actual fun glReadPixels(x: Int, y: Int, width: Int, height: Int, format: PixelFormat): ByteArray

Reads pixels from frame buffer.