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 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int bufSize, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int bufSize, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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(int texture, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, 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);
}
}