glReadnPixels function opengl_glext

void glReadnPixels(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int format,
  6. int type,
  7. int bufSize,
  8. Pointer<NativeType> data,
)
GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data)

Implementation

void glReadnPixels(
  int x,
  int y,
  int width,
  int height,
  int format,
  int type,
  int bufSize,
  Pointer<NativeType> data,
) {
  final glReadnPixelsAsFunction = _glReadnPixels
      .cast<
        NativeFunction<
          Void Function(
            Int32 x,
            Int32 y,
            Uint32 width,
            Uint32 height,
            Uint32 format,
            Uint32 type,
            Uint32 bufSize,
            Pointer<NativeType> data,
          )
        >
      >()
      .asFunction<
        void Function(
          int x,
          int y,
          int width,
          int height,
          int format,
          int type,
          int bufSize,
          Pointer<NativeType> data,
        )
      >();
  return glReadnPixelsAsFunction(
    x,
    y,
    width,
    height,
    format,
    type,
    bufSize,
    data,
  );
}