glReadPixels

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

Reads pixels from frame buffer.