Class ARBGetTextureSubImage


  • public class ARBGetTextureSubImage
    extends java.lang.Object
    Native bindings to the ARB_get_texture_sub_image extension.

    This extension adds a new function to get sub-regions of texture images.

    Requires OpenGL 2.0. Promoted to core in OpenGL 4.5.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, double[] pixels)
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, float[] pixels)
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int[] pixels)
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, long pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, short[] pixels)
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, java.nio.ByteBuffer pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, java.nio.DoubleBuffer pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, java.nio.FloatBuffer pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, java.nio.IntBuffer pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, java.nio.ShortBuffer pixels)
      Obtains a sub-region of a compressed texture image.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, double[] pixels)
      Array version of: GetTextureSubImage
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels)
      Array version of: GetTextureSubImage
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels)
      Array version of: GetTextureSubImage
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int bufSize, long pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels)
      Array version of: GetTextureSubImage
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ByteBuffer pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.DoubleBuffer pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.FloatBuffer pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.IntBuffer pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void glGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.ShortBuffer pixels)
      Obtains sub-regions of a texture image from a texture object.
      static void nglGetCompressedTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, long pixels)
      Unsafe version of: GetCompressedTextureSubImage
      static void nglGetTextureSubImage​(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int bufSize, long pixels)
      Unsafe version of: GetTextureSubImage
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • nglGetTextureSubImage

        public static void nglGetTextureSubImage​(int texture,
                                                 int level,
                                                 int xoffset,
                                                 int yoffset,
                                                 int zoffset,
                                                 int width,
                                                 int height,
                                                 int depth,
                                                 int format,
                                                 int type,
                                                 int bufSize,
                                                 long pixels)
        Unsafe version of: GetTextureSubImage
        Parameters:
        bufSize - the size of the buffer to receive the retrieved pixel data
      • nglGetCompressedTextureSubImage

        public static void nglGetCompressedTextureSubImage​(int texture,
                                                           int level,
                                                           int xoffset,
                                                           int yoffset,
                                                           int zoffset,
                                                           int width,
                                                           int height,
                                                           int depth,
                                                           int bufSize,
                                                           long pixels)
        Unsafe version of: GetCompressedTextureSubImage
        Parameters:
        bufSize - the size of the buffer to receive the retrieved pixel data
      • glGetCompressedTextureSubImage

        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          int bufSize,
                                                          long pixels)
        Obtains a sub-region of a compressed texture image.
        Parameters:
        texture - the source texture object name
        level - the level-of-detail number
        xoffset - the x-position of the subregion
        yoffset - the y-position of the subregion
        zoffset - the z-position of the subregion
        width - the subregion width
        height - the subregion height
        depth - the subregion depth
        bufSize - the size of the buffer to receive the retrieved pixel data
        pixels - the buffer in which to place the returned data
      • glGetCompressedTextureSubImage

        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          java.nio.ByteBuffer pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          java.nio.ShortBuffer pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          java.nio.IntBuffer pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          java.nio.FloatBuffer pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          java.nio.DoubleBuffer pixels)
        
        Obtains a sub-region of a compressed texture image.
        Parameters:
        texture - the source texture object name
        level - the level-of-detail number
        xoffset - the x-position of the subregion
        yoffset - the y-position of the subregion
        zoffset - the z-position of the subregion
        width - the subregion width
        height - the subregion height
        depth - the subregion depth
        pixels - the buffer in which to place the returned data
      • glGetTextureSubImage

        public static void glGetTextureSubImage​(int texture,
                                                int level,
                                                int xoffset,
                                                int yoffset,
                                                int zoffset,
                                                int width,
                                                int height,
                                                int depth,
                                                int format,
                                                int type,
                                                short[] pixels)
        
        public static void glGetTextureSubImage​(int texture,
                                                int level,
                                                int xoffset,
                                                int yoffset,
                                                int zoffset,
                                                int width,
                                                int height,
                                                int depth,
                                                int format,
                                                int type,
                                                int[] pixels)
        
        public static void glGetTextureSubImage​(int texture,
                                                int level,
                                                int xoffset,
                                                int yoffset,
                                                int zoffset,
                                                int width,
                                                int height,
                                                int depth,
                                                int format,
                                                int type,
                                                float[] pixels)
        
        public static void glGetTextureSubImage​(int texture,
                                                int level,
                                                int xoffset,
                                                int yoffset,
                                                int zoffset,
                                                int width,
                                                int height,
                                                int depth,
                                                int format,
                                                int type,
                                                double[] pixels)
        
        Array version of: GetTextureSubImage
      • glGetCompressedTextureSubImage

        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          short[] pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          int[] pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          float[] pixels)
        
        public static void glGetCompressedTextureSubImage​(int texture,
                                                          int level,
                                                          int xoffset,
                                                          int yoffset,
                                                          int zoffset,
                                                          int width,
                                                          int height,
                                                          int depth,
                                                          double[] pixels)