org.lwjgl.opengles.QCOMExtendedGet2 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 QCOM_extended_get2 extension.
*
* This extension enables instrumenting the driver for debugging of OpenGL ES applications.
*/
public class QCOMExtendedGet2 {
protected QCOMExtendedGet2() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLESCapabilities caps) {
return checkFunctions(
caps.glExtGetShadersQCOM, caps.glExtGetProgramsQCOM, caps.glExtIsProgramBinaryQCOM, caps.glExtGetProgramBinarySourceQCOM
);
}
// --- [ glExtGetShadersQCOM ] ---
public static void nglExtGetShadersQCOM(long shaders, int maxShaders, long numShaders) {
long __functionAddress = GLES.getCapabilities().glExtGetShadersQCOM;
if ( CHECKS )
checkFunctionAddress(__functionAddress);
callPPV(__functionAddress, shaders, maxShaders, numShaders);
}
public static void glExtGetShadersQCOM(IntBuffer shaders, IntBuffer numShaders) {
if ( CHECKS )
checkBufferSafe(numShaders, 1);
nglExtGetShadersQCOM(memAddressSafe(shaders), remainingSafe(shaders), memAddressSafe(numShaders));
}
// --- [ glExtGetProgramsQCOM ] ---
public static void nglExtGetProgramsQCOM(long programs, int maxPrograms, long numPrograms) {
long __functionAddress = GLES.getCapabilities().glExtGetProgramsQCOM;
if ( CHECKS )
checkFunctionAddress(__functionAddress);
callPPV(__functionAddress, programs, maxPrograms, numPrograms);
}
public static void glExtGetProgramsQCOM(IntBuffer programs, IntBuffer numPrograms) {
if ( CHECKS )
checkBufferSafe(numPrograms, 1);
nglExtGetProgramsQCOM(memAddressSafe(programs), remainingSafe(programs), memAddressSafe(numPrograms));
}
// --- [ glExtIsProgramBinaryQCOM ] ---
public static boolean glExtIsProgramBinaryQCOM(int program) {
long __functionAddress = GLES.getCapabilities().glExtIsProgramBinaryQCOM;
if ( CHECKS )
checkFunctionAddress(__functionAddress);
return callZ(__functionAddress, program);
}
// --- [ glExtGetProgramBinarySourceQCOM ] ---
public static void nglExtGetProgramBinarySourceQCOM(int program, int shadertype, long source, long length) {
long __functionAddress = GLES.getCapabilities().glExtGetProgramBinarySourceQCOM;
if ( CHECKS )
checkFunctionAddress(__functionAddress);
callPPV(__functionAddress, program, shadertype, source, length);
}
public static void glExtGetProgramBinarySourceQCOM(int program, int shadertype, ByteBuffer source, IntBuffer length) {
if ( CHECKS )
checkBufferSafe(length, 1);
nglExtGetProgramBinarySourceQCOM(program, shadertype, memAddressSafe(source), memAddressSafe(length));
}
/** Array version of: {@link #glExtGetShadersQCOM ExtGetShadersQCOM} */
public static void glExtGetShadersQCOM(int[] shaders, int[] numShaders) {
long __functionAddress = GLES.getCapabilities().glExtGetShadersQCOM;
if ( CHECKS ) {
checkFunctionAddress(__functionAddress);
checkBufferSafe(numShaders, 1);
}
callPPV(__functionAddress, shaders, lengthSafe(shaders), numShaders);
}
/** Array version of: {@link #glExtGetProgramsQCOM ExtGetProgramsQCOM} */
public static void glExtGetProgramsQCOM(int[] programs, int[] numPrograms) {
long __functionAddress = GLES.getCapabilities().glExtGetProgramsQCOM;
if ( CHECKS ) {
checkFunctionAddress(__functionAddress);
checkBufferSafe(numPrograms, 1);
}
callPPV(__functionAddress, programs, lengthSafe(programs), numPrograms);
}
/** Array version of: {@link #glExtGetProgramBinarySourceQCOM ExtGetProgramBinarySourceQCOM} */
public static void glExtGetProgramBinarySourceQCOM(int program, int shadertype, ByteBuffer source, int[] length) {
long __functionAddress = GLES.getCapabilities().glExtGetProgramBinarySourceQCOM;
if ( CHECKS ) {
checkFunctionAddress(__functionAddress);
checkBufferSafe(length, 1);
}
callPPV(__functionAddress, program, shadertype, memAddressSafe(source), length);
}
}