glCopyPixels function opengl

void glCopyPixels(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
  5. int type,
)
GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum type )

Implementation

void glCopyPixels(int x, int y, int width, int height, int type) {
  final glCopyPixelsAsFunction = _glCopyPixels
      .cast<
        NativeFunction<
          Void Function(
            Int32 x,
            Int32 y,
            Uint32 width,
            Uint32 height,
            Uint32 type,
          )
        >
      >()
      .asFunction<
        void Function(int x, int y, int width, int height, int type)
      >();
  return glCopyPixelsAsFunction(x, y, width, height, type);
}