org.lwjgl.opengles.OESTexture3D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengles Show documentation
Show all versions of lwjgl-opengles Show documentation
A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengles;
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 OES_texture_3D extension.
*
* This extension adds support for 3D textures. The OpenGL ES 2.0 texture wrap modes and mip-mapping is supported for power of two 3D textures. Mip-
* mapping and texture wrap modes other than CLAMP_TO_EDGE are not supported for non-power of two 3D textures.
*
* The OES_texture_npot extension, if supported, will enable mip-mapping and other wrap modes for non-power of two 3D textures.
*
* Requires {@link GLES20 GLES 2.0}.
*/
public class OESTexture3D {
/**
* Accepted by the {@code target} parameter of TexImage3DOES, TexSubImage3DOES, CopyTexSubImage3DOES, CompressedTexImage3DOES and
* CompressedTexSubImage3DOES, GetTexParameteriv, and GetTexParameterfv.
*/
public static final int GL_TEXTURE_3D_OES = 0x806F;
/** Accepted by the {@code pname} parameter of TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv. */
public static final int GL_TEXTURE_WRAP_R_OES = 0x8072;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, and GetFloatv. */
public static final int
GL_MAX_3D_TEXTURE_SIZE_OES = 0x8073,
GL_TEXTURE_BINDING_3D_OES = 0x806A;
static { GLES.initialize(); }
protected OESTexture3D() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glTexImage3DOES, caps.glTexSubImage3DOES, caps.glCopyTexSubImage3DOES, caps.glCompressedTexImage3DOES, caps.glCompressedTexSubImage3DOES,
caps.glFramebufferTexture3DOES
);
}
// --- [ glTexImage3DOES ] ---
public static native void nglTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels);
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, ByteBuffer pixels) {
nglTexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels) {
nglTexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, pixels);
}
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, ShortBuffer pixels) {
nglTexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, IntBuffer pixels) {
nglTexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, FloatBuffer pixels) {
nglTexImage3DOES(target, level, internalformat, width, height, depth, border, format, type, memAddressSafe(pixels));
}
// --- [ glTexSubImage3DOES ] ---
public static native void nglTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels);
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ByteBuffer pixels) {
nglTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(pixels));
}
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels) {
nglTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, ShortBuffer pixels) {
nglTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(pixels));
}
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, IntBuffer pixels) {
nglTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(pixels));
}
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, FloatBuffer pixels) {
nglTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(pixels));
}
// --- [ glCopyTexSubImage3DOES ] ---
public static native void nglCopyTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height);
public static void glCopyTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) {
nglCopyTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
// --- [ glCompressedTexImage3DOES ] ---
public static native void nglCompressedTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data);
public static void glCompressedTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) {
nglCompressedTexImage3DOES(target, level, internalformat, width, height, depth, border, imageSize, data);
}
public static void glCompressedTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, ByteBuffer data) {
nglCompressedTexImage3DOES(target, level, internalformat, width, height, depth, border, remainingSafe(data), memAddressSafe(data));
}
// --- [ glCompressedTexSubImage3DOES ] ---
public static native void nglCompressedTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data);
public static void glCompressedTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data) {
nglCompressedTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
}
public static void glCompressedTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data) {
nglCompressedTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, data.remaining(), memAddress(data));
}
// --- [ glFramebufferTexture3DOES ] ---
public static native void nglFramebufferTexture3DOES(int target, int attachment, int textarget, int texture, int level, int zoffset);
public static void glFramebufferTexture3DOES(int target, int attachment, int textarget, int texture, int level, int zoffset) {
nglFramebufferTexture3DOES(target, attachment, textarget, texture, level, zoffset);
}
/** Array version of: {@link #glTexImage3DOES TexImage3DOES} */
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, short[] pixels) {
long __functionAddress = GLES.getICD().glTexImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/** Array version of: {@link #glTexImage3DOES TexImage3DOES} */
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int[] pixels) {
long __functionAddress = GLES.getICD().glTexImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/** Array version of: {@link #glTexImage3DOES TexImage3DOES} */
public static void glTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, float[] pixels) {
long __functionAddress = GLES.getICD().glTexImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, internalformat, width, height, depth, border, format, type, pixels);
}
/** Array version of: {@link #glTexSubImage3DOES TexSubImage3DOES} */
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels) {
long __functionAddress = GLES.getICD().glTexSubImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
/** Array version of: {@link #glTexSubImage3DOES TexSubImage3DOES} */
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels) {
long __functionAddress = GLES.getICD().glTexSubImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
/** Array version of: {@link #glTexSubImage3DOES TexSubImage3DOES} */
public static void glTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels) {
long __functionAddress = GLES.getICD().glTexSubImage3DOES;
if ( CHECKS )
check(__functionAddress);
callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
}