glGetTextureImage function opengl_glext

void glGetTextureImage(
  1. int texture,
  2. int level,
  3. int format,
  4. int type,
  5. int bufSize,
  6. Pointer<NativeType> pixels,
)
GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels)

Implementation

void glGetTextureImage(
  int texture,
  int level,
  int format,
  int type,
  int bufSize,
  Pointer<NativeType> pixels,
) {
  final glGetTextureImageAsFunction = _glGetTextureImage
      .cast<
        NativeFunction<
          Void Function(
            Uint32 texture,
            Int32 level,
            Uint32 format,
            Uint32 type,
            Uint32 bufSize,
            Pointer<NativeType> pixels,
          )
        >
      >()
      .asFunction<
        void Function(
          int texture,
          int level,
          int format,
          int type,
          int bufSize,
          Pointer<NativeType> pixels,
        )
      >();
  return glGetTextureImageAsFunction(
    texture,
    level,
    format,
    type,
    bufSize,
    pixels,
  );
}