org.lwjgl.opengles.QCOMExtendedGet 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 org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;
/**
* Native bindings to the QCOM_extended_get extension.
* This extension enables instrumenting the driver for debugging of OpenGL ES applications.
*/
public class QCOMExtendedGet {
/** Accepted by the {@code pname} parameter of ExtGetTexLevelParameterivQCOM. */
public static final int
GL_TEXTURE_WIDTH_QCOM = 0x8BD2,
GL_TEXTURE_HEIGHT_QCOM = 0x8BD3,
GL_TEXTURE_DEPTH_QCOM = 0x8BD4,
GL_TEXTURE_INTERNAL_FORMAT_QCOM = 0x8BD5,
GL_TEXTURE_FORMAT_QCOM = 0x8BD6,
GL_TEXTURE_TYPE_QCOM = 0x8BD7,
GL_TEXTURE_IMAGE_VALID_QCOM = 0x8BD8,
GL_TEXTURE_NUM_LEVELS_QCOM = 0x8BD9,
GL_TEXTURE_TARGET_QCOM = 0x8BDA,
GL_TEXTURE_OBJECT_VALID_QCOM = 0x8BDB;
/** Accepted by the {@code pname} parameter of ExtTexObjectStateOverrideiQCOM. */
public static final int GL_STATE_RESTORE = 0x8BDC;
static { GLES.initialize(); }
protected QCOMExtendedGet() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glExtGetTexturesQCOM, caps.glExtGetBuffersQCOM, caps.glExtGetRenderbuffersQCOM, caps.glExtGetFramebuffersQCOM,
caps.glExtGetTexLevelParameterivQCOM, caps.glExtTexObjectStateOverrideiQCOM, caps.glExtGetTexSubImageQCOM, caps.glExtGetBufferPointervQCOM
);
}
// --- [ glExtGetTexturesQCOM ] ---
public static native void nglExtGetTexturesQCOM(long textures, int maxTextures, long numTextures);
public static void glExtGetTexturesQCOM(@NativeType("GLuint *") IntBuffer textures, @NativeType("GLint *") IntBuffer numTextures) {
if (CHECKS) {
checkSafe(numTextures, 1);
}
nglExtGetTexturesQCOM(memAddressSafe(textures), remainingSafe(textures), memAddressSafe(numTextures));
}
// --- [ glExtGetBuffersQCOM ] ---
public static native void nglExtGetBuffersQCOM(long buffers, int maxBuffers, long numBuffers);
public static void glExtGetBuffersQCOM(@NativeType("GLuint *") IntBuffer buffers, @NativeType("GLint *") IntBuffer numBuffers) {
if (CHECKS) {
checkSafe(numBuffers, 1);
}
nglExtGetBuffersQCOM(memAddressSafe(buffers), remainingSafe(buffers), memAddressSafe(numBuffers));
}
// --- [ glExtGetRenderbuffersQCOM ] ---
public static native void nglExtGetRenderbuffersQCOM(long renderbuffers, int maxRenderbuffers, long numRenderbuffers);
public static void glExtGetRenderbuffersQCOM(@NativeType("GLuint *") IntBuffer renderbuffers, @NativeType("GLint *") IntBuffer numRenderbuffers) {
if (CHECKS) {
checkSafe(numRenderbuffers, 1);
}
nglExtGetRenderbuffersQCOM(memAddressSafe(renderbuffers), remainingSafe(renderbuffers), memAddressSafe(numRenderbuffers));
}
// --- [ glExtGetFramebuffersQCOM ] ---
public static native void nglExtGetFramebuffersQCOM(long framebuffers, int maxFramebuffers, long numFramebuffers);
public static void glExtGetFramebuffersQCOM(@NativeType("GLuint *") IntBuffer framebuffers, @NativeType("GLint *") IntBuffer numFramebuffers) {
if (CHECKS) {
checkSafe(numFramebuffers, 1);
}
nglExtGetFramebuffersQCOM(memAddressSafe(framebuffers), remainingSafe(framebuffers), memAddressSafe(numFramebuffers));
}
// --- [ glExtGetTexLevelParameterivQCOM ] ---
public static native void nglExtGetTexLevelParameterivQCOM(int texture, int face, int level, int pname, long params);
public static void glExtGetTexLevelParameterivQCOM(@NativeType("GLuint") int texture, @NativeType("GLenum") int face, @NativeType("GLint") int level, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglExtGetTexLevelParameterivQCOM(texture, face, level, pname, memAddress(params));
}
@NativeType("void")
public static int glExtGetTexLevelParameteriQCOM(@NativeType("GLuint") int texture, @NativeType("GLenum") int face, @NativeType("GLint") int level, @NativeType("GLenum") int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglExtGetTexLevelParameterivQCOM(texture, face, level, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glExtTexObjectStateOverrideiQCOM ] ---
public static native void glExtTexObjectStateOverrideiQCOM(@NativeType("GLenum") int target, @NativeType("GLenum") int pname, @NativeType("GLint") int param);
// --- [ glExtGetTexSubImageQCOM ] ---
public static native void nglExtGetTexSubImageQCOM(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, long texels);
public static void glExtGetTexSubImageQCOM(@NativeType("GLenum") int target, @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 texels) {
nglExtGetTexSubImageQCOM(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, memAddress(texels));
}
// --- [ glExtGetBufferPointervQCOM ] ---
public static native void nglExtGetBufferPointervQCOM(int target, long params);
public static void glExtGetBufferPointervQCOM(@NativeType("GLenum") int target, @NativeType("void **") PointerBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglExtGetBufferPointervQCOM(target, memAddress(params));
}
@NativeType("void")
public static long glExtGetBufferPointerQCOM(@NativeType("GLenum") int target) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
PointerBuffer params = stack.callocPointer(1);
nglExtGetBufferPointervQCOM(target, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
/** Array version of: {@link #glExtGetTexturesQCOM ExtGetTexturesQCOM} */
public static void glExtGetTexturesQCOM(@NativeType("GLuint *") int[] textures, @NativeType("GLint *") int[] numTextures) {
long __functionAddress = GLES.getICD().glExtGetTexturesQCOM;
if (CHECKS) {
check(__functionAddress);
checkSafe(numTextures, 1);
}
callPPV(__functionAddress, textures, lengthSafe(textures), numTextures);
}
/** Array version of: {@link #glExtGetBuffersQCOM ExtGetBuffersQCOM} */
public static void glExtGetBuffersQCOM(@NativeType("GLuint *") int[] buffers, @NativeType("GLint *") int[] numBuffers) {
long __functionAddress = GLES.getICD().glExtGetBuffersQCOM;
if (CHECKS) {
check(__functionAddress);
checkSafe(numBuffers, 1);
}
callPPV(__functionAddress, buffers, lengthSafe(buffers), numBuffers);
}
/** Array version of: {@link #glExtGetRenderbuffersQCOM ExtGetRenderbuffersQCOM} */
public static void glExtGetRenderbuffersQCOM(@NativeType("GLuint *") int[] renderbuffers, @NativeType("GLint *") int[] numRenderbuffers) {
long __functionAddress = GLES.getICD().glExtGetRenderbuffersQCOM;
if (CHECKS) {
check(__functionAddress);
checkSafe(numRenderbuffers, 1);
}
callPPV(__functionAddress, renderbuffers, lengthSafe(renderbuffers), numRenderbuffers);
}
/** Array version of: {@link #glExtGetFramebuffersQCOM ExtGetFramebuffersQCOM} */
public static void glExtGetFramebuffersQCOM(@NativeType("GLuint *") int[] framebuffers, @NativeType("GLint *") int[] numFramebuffers) {
long __functionAddress = GLES.getICD().glExtGetFramebuffersQCOM;
if (CHECKS) {
check(__functionAddress);
checkSafe(numFramebuffers, 1);
}
callPPV(__functionAddress, framebuffers, lengthSafe(framebuffers), numFramebuffers);
}
/** Array version of: {@link #glExtGetTexLevelParameterivQCOM ExtGetTexLevelParameterivQCOM} */
public static void glExtGetTexLevelParameterivQCOM(@NativeType("GLuint") int texture, @NativeType("GLenum") int face, @NativeType("GLint") int level, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) {
long __functionAddress = GLES.getICD().glExtGetTexLevelParameterivQCOM;
if (CHECKS) {
check(__functionAddress);
check(params, 1);
}
callPV(__functionAddress, texture, face, level, pname, params);
}
}