Package org.lwjgl.opengl
Class ARBGetTextureSubImage
java.lang.Object
org.lwjgl.opengl.ARBGetTextureSubImage
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
Modifier and TypeMethodDescriptionstatic voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, double[] pixels) Array version of:GetCompressedTextureSubImagestatic voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, float[] pixels) Array version of:GetCompressedTextureSubImagestatic voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int[] pixels) Array version of:GetCompressedTextureSubImagestatic voidglGetCompressedTextureSubImage(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 voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, short[] pixels) Array version of:GetCompressedTextureSubImagestatic voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, ByteBuffer pixels) Obtains a sub-region of a compressed texture image.static voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, DoubleBuffer pixels) Obtains a sub-region of a compressed texture image.static voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, FloatBuffer pixels) Obtains a sub-region of a compressed texture image.static voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, IntBuffer pixels) Obtains a sub-region of a compressed texture image.static voidglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, ShortBuffer pixels) Obtains a sub-region of a compressed texture image.static voidglGetTextureSubImage(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:GetTextureSubImagestatic voidglGetTextureSubImage(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:GetTextureSubImagestatic voidglGetTextureSubImage(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:GetTextureSubImagestatic voidglGetTextureSubImage(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 voidglGetTextureSubImage(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:GetTextureSubImagestatic voidglGetTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) Obtains sub-regions of a texture image from a texture object.static voidglGetTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, DoubleBuffer pixels) Obtains sub-regions of a texture image from a texture object.static voidglGetTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) Obtains sub-regions of a texture image from a texture object.static voidglGetTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) Obtains sub-regions of a texture image from a texture object.static voidglGetTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) Obtains sub-regions of a texture image from a texture object.static voidnglGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, long pixels) Unsafe version of:GetCompressedTextureSubImagestatic voidnglGetTextureSubImage(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
-
Method Details
-
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
-
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, int bufSize, long pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of:bufSize- the size of the buffer to receive the retrieved pixel datapixels- 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, ByteBuffer pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of: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, ShortBuffer pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of: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, IntBuffer pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of: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, FloatBuffer pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of: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, DoubleBuffer pixels) Obtains sub-regions of a texture image from a texture object.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthformat- the pixel format. One of:type- the pixel type. One of:pixels- the buffer in which to place the returned 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 namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthbufSize- the size of the buffer to receive the retrieved pixel datapixels- 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, ByteBuffer pixels) Obtains a sub-region of a compressed texture image.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthpixels- 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, ShortBuffer pixels) Obtains a sub-region of a compressed texture image.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthpixels- 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, IntBuffer pixels) Obtains a sub-region of a compressed texture image.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthpixels- 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, FloatBuffer pixels) Obtains a sub-region of a compressed texture image.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthpixels- 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, DoubleBuffer pixels) Obtains a sub-region of a compressed texture image.- Parameters:
texture- the source texture object namelevel- the level-of-detail numberxoffset- the x-position of the subregionyoffset- the y-position of the subregionzoffset- the z-position of the subregionwidth- the subregion widthheight- the subregion heightdepth- the subregion depthpixels- 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) Array version of:GetTextureSubImage -
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, int[] pixels) Array version of:GetTextureSubImage -
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, float[] pixels) Array version of:GetTextureSubImage -
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, 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) Array version of:GetCompressedTextureSubImage -
glGetCompressedTextureSubImage
public static void glGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int[] pixels) Array version of:GetCompressedTextureSubImage -
glGetCompressedTextureSubImage
public static void glGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, float[] pixels) Array version of:GetCompressedTextureSubImage -
glGetCompressedTextureSubImage
public static void glGetCompressedTextureSubImage(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, double[] pixels) Array version of:GetCompressedTextureSubImage
-