glGetCompressedTextureSubImage function opengl_glext

void glGetCompressedTextureSubImage(
  1. int texture,
  2. int level,
  3. int xoffset,
  4. int yoffset,
  5. int zoffset,
  6. int width,
  7. int height,
  8. int depth,
  9. int bufSize,
  10. Pointer<NativeType> pixels,
)
GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels)

Implementation

void glGetCompressedTextureSubImage(
  int texture,
  int level,
  int xoffset,
  int yoffset,
  int zoffset,
  int width,
  int height,
  int depth,
  int bufSize,
  Pointer<NativeType> pixels,
) {
  final glGetCompressedTextureSubImageAsFunction =
      _glGetCompressedTextureSubImage
          .cast<
            NativeFunction<
              Void Function(
                Uint32 texture,
                Int32 level,
                Int32 xoffset,
                Int32 yoffset,
                Int32 zoffset,
                Uint32 width,
                Uint32 height,
                Uint32 depth,
                Uint32 bufSize,
                Pointer<NativeType> pixels,
              )
            >
          >()
          .asFunction<
            void Function(
              int texture,
              int level,
              int xoffset,
              int yoffset,
              int zoffset,
              int width,
              int height,
              int depth,
              int bufSize,
              Pointer<NativeType> pixels,
            )
          >();
  return glGetCompressedTextureSubImageAsFunction(
    texture,
    level,
    xoffset,
    yoffset,
    zoffset,
    width,
    height,
    depth,
    bufSize,
    pixels,
  );
}