glReadPixels function

void glReadPixels(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int format,
  6. int type,
  7. Pointer<Void> pixels,
)
GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)

Implementation

void glReadPixels(int x, int y, int width, int height, int format, int type,
    Pointer<Void> pixels) {
  final glReadPixelsLookupFunction = libGL.lookupFunction<
      Void Function(Int32 x, Int32 y, Uint32 width, Uint32 height,
          Uint32 format, Uint32 type, Pointer<Void> pixels),
      void Function(int x, int y, int width, int height, int format, int type,
          Pointer<Void> pixels)>('glReadPixels');
  return glReadPixelsLookupFunction(x, y, width, height, format, type, pixels);
}