All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengles.OESTexture3D Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

There is a newer version: 3.3.4
Show newest version
/*
 * 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; 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 void nglTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, long pixels) { long __functionAddress = GLES.getCapabilities().glTexImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, 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, 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 void nglTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long pixels) { long __functionAddress = GLES.getCapabilities().glTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, 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, 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 void glCopyTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) { long __functionAddress = GLES.getCapabilities().glCopyTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callV(__functionAddress, target, level, xoffset, yoffset, zoffset, x, y, width, height); } // --- [ glCompressedTexImage3DOES ] --- public static void nglCompressedTexImage3DOES(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data) { long __functionAddress = GLES.getCapabilities().glCompressedTexImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, 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, 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 void nglCompressedTexSubImage3DOES(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data) { long __functionAddress = GLES.getCapabilities().glCompressedTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, 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, 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 void glFramebufferTexture3DOES(int target, int attachment, int textarget, int texture, int level, int zoffset) { long __functionAddress = GLES.getCapabilities().glFramebufferTexture3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callV(__functionAddress, 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.getCapabilities().glTexImage3DOES; if ( CHECKS ) checkFunctionAddress(__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.getCapabilities().glTexImage3DOES; if ( CHECKS ) checkFunctionAddress(__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.getCapabilities().glTexImage3DOES; if ( CHECKS ) checkFunctionAddress(__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.getCapabilities().glTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__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.getCapabilities().glTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__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.getCapabilities().glTexSubImage3DOES; if ( CHECKS ) checkFunctionAddress(__functionAddress); callPV(__functionAddress, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy