Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Native bindings to the ARB_get_texture_sub_image extension.
*
*
This extension adds a new function to get sub-regions of texture images.
*
*
Requires {@link GL20 OpenGL 2.0}. Promoted to core in {@link GL45 OpenGL 4.5}.
*/
public class ARBGetTextureSubImage {
static { GL.initialize(); }
protected ARBGetTextureSubImage() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glGetTextureSubImage, caps.glGetCompressedTextureSubImage
);
}
// --- [ glGetTextureSubImage ] ---
/**
* Unsafe version of: {@link #glGetTextureSubImage GetTextureSubImage}
*
* @param bufSize the size of the buffer to receive the retrieved pixel data
*/
public static native 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);
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param bufSize the size of the buffer to receive the retrieved pixel data
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("GLsizei") int bufSize, @NativeType("void *") long pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels);
}
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") ByteBuffer pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.remaining(), memAddress(pixels));
}
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") ShortBuffer pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.remaining() << 1, memAddress(pixels));
}
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") IntBuffer pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.remaining() << 2, memAddress(pixels));
}
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") FloatBuffer pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.remaining() << 2, memAddress(pixels));
}
/**
* Obtains sub-regions of a texture image from a texture object.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param format the pixel format. One of:
* @param pixels the buffer in which to place the returned data
*/
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") DoubleBuffer pixels) {
nglGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.remaining() << 3, memAddress(pixels));
}
// --- [ glGetCompressedTextureSubImage ] ---
/**
* Unsafe version of: {@link #glGetCompressedTextureSubImage GetCompressedTextureSubImage}
*
* @param bufSize the size of the buffer to receive the retrieved pixel data
*/
public static native void nglGetCompressedTextureSubImage(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.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param bufSize the size of the buffer to receive the retrieved pixel data
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLsizei") int bufSize, @NativeType("void *") long pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels);
}
/**
* Obtains a sub-region of a compressed texture image.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") ByteBuffer pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.remaining(), memAddress(pixels));
}
/**
* Obtains a sub-region of a compressed texture image.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") ShortBuffer pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.remaining() << 1, memAddress(pixels));
}
/**
* Obtains a sub-region of a compressed texture image.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") IntBuffer pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.remaining() << 2, memAddress(pixels));
}
/**
* Obtains a sub-region of a compressed texture image.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") FloatBuffer pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.remaining() << 2, memAddress(pixels));
}
/**
* Obtains a sub-region of a compressed texture image.
*
* @param texture the source texture object name
* @param level the level-of-detail number
* @param xoffset the x-position of the subregion
* @param yoffset the y-position of the subregion
* @param zoffset the z-position of the subregion
* @param width the subregion width
* @param height the subregion height
* @param depth the subregion depth
* @param pixels the buffer in which to place the returned data
*/
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") DoubleBuffer pixels) {
nglGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.remaining() << 3, memAddress(pixels));
}
/** Array version of: {@link #glGetTextureSubImage GetTextureSubImage} */
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") short[] pixels) {
long __functionAddress = GL.getICD().glGetTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length << 1, pixels);
}
/** Array version of: {@link #glGetTextureSubImage GetTextureSubImage} */
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") int[] pixels) {
long __functionAddress = GL.getICD().glGetTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length << 2, pixels);
}
/** Array version of: {@link #glGetTextureSubImage GetTextureSubImage} */
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") float[] pixels) {
long __functionAddress = GL.getICD().glGetTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length << 2, pixels);
}
/** Array version of: {@link #glGetTextureSubImage GetTextureSubImage} */
public static void glGetTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("GLenum") int format, @NativeType("GLenum") int type, @NativeType("void *") double[] pixels) {
long __functionAddress = GL.getICD().glGetTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels.length << 3, pixels);
}
/** Array version of: {@link #glGetCompressedTextureSubImage GetCompressedTextureSubImage} */
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") short[] pixels) {
long __functionAddress = GL.getICD().glGetCompressedTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.length << 1, pixels);
}
/** Array version of: {@link #glGetCompressedTextureSubImage GetCompressedTextureSubImage} */
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") int[] pixels) {
long __functionAddress = GL.getICD().glGetCompressedTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.length << 2, pixels);
}
/** Array version of: {@link #glGetCompressedTextureSubImage GetCompressedTextureSubImage} */
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") float[] pixels) {
long __functionAddress = GL.getICD().glGetCompressedTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.length << 2, pixels);
}
/** Array version of: {@link #glGetCompressedTextureSubImage GetCompressedTextureSubImage} */
public static void glGetCompressedTextureSubImage(@NativeType("GLuint") int texture, @NativeType("GLint") int level, @NativeType("GLint") int xoffset, @NativeType("GLint") int yoffset, @NativeType("GLint") int zoffset, @NativeType("GLsizei") int width, @NativeType("GLsizei") int height, @NativeType("GLsizei") int depth, @NativeType("void *") double[] pixels) {
long __functionAddress = GL.getICD().glGetCompressedTextureSubImage;
if (CHECKS) {
check(__functionAddress);
}
callPV(__functionAddress, texture, level, xoffset, yoffset, zoffset, width, height, depth, pixels.length << 3, pixels);
}
}