Added SGIS_generate_mipmap & SGIS_texture_lod extensions
This commit is contained in:
parent
4c9edffc85
commit
84600dffdb
|
@ -15,7 +15,7 @@
|
||||||
<property name="lwjgl.res" location="res" />
|
<property name="lwjgl.res" location="res" />
|
||||||
<property name="lwjgl.version" value="1.0beta2" />
|
<property name="lwjgl.version" value="1.0beta2" />
|
||||||
|
|
||||||
<property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java"/>
|
<property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java,org/lwjgl/opengl/SGIS*.java"/>
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
<!-- Filesets used for targets -->
|
<!-- Filesets used for targets -->
|
||||||
<!-- ================================================================== -->
|
<!-- ================================================================== -->
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
||||||
|
|
||||||
package org.lwjgl.opengl;
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
import org.lwjgl.LWJGLException;
|
import org.lwjgl.LWJGLException;
|
||||||
import org.lwjgl.BufferChecks;
|
import org.lwjgl.BufferChecks;
|
||||||
import java.nio.*;
|
import java.nio.*;
|
||||||
|
|
||||||
public final class ATITextFragmentShader {
|
public final class ATITextFragmentShader {
|
||||||
/**
|
/**
|
||||||
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
|
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
|
||||||
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
|
* and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
|
||||||
* and GetDoublev, and by the <target> parameter of ProgramStringARB,
|
* and GetDoublev, and by the <target> parameter of ProgramStringARB,
|
||||||
* BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB,
|
* BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB,
|
||||||
* ProgramLocalParameter4{d,dv,f,fv}ARB,
|
* ProgramLocalParameter4{d,dv,f,fv}ARB,
|
||||||
* GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB,
|
* GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB,
|
||||||
* GetProgramivARB, GetProgramfvATI, and GetProgramStringARB.
|
* GetProgramivARB, GetProgramfvATI, and GetProgramStringARB.
|
||||||
*/
|
*/
|
||||||
public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200;
|
public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200;
|
||||||
|
|
||||||
private ATITextFragmentShader() {
|
private ATITextFragmentShader() {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,8 @@ public class ContextCapabilities {
|
||||||
public final boolean GL_NV_vertex_program2;
|
public final boolean GL_NV_vertex_program2;
|
||||||
public final boolean GL_NV_vertex_program2_option;
|
public final boolean GL_NV_vertex_program2_option;
|
||||||
public final boolean GL_NV_vertex_program3;
|
public final boolean GL_NV_vertex_program3;
|
||||||
|
public final boolean GL_SGIS_generate_mipmap;
|
||||||
|
public final boolean GL_SGIS_texture_lod;
|
||||||
public final boolean GL_SUN_slice_accum;
|
public final boolean GL_SUN_slice_accum;
|
||||||
|
|
||||||
long ARB_buffer_object_glBindBufferARB_pointer;
|
long ARB_buffer_object_glBindBufferARB_pointer;
|
||||||
|
@ -2398,6 +2400,8 @@ public class ContextCapabilities {
|
||||||
this.GL_NV_vertex_program2 = supported_extensions.contains("GL_NV_vertex_program2");
|
this.GL_NV_vertex_program2 = supported_extensions.contains("GL_NV_vertex_program2");
|
||||||
this.GL_NV_vertex_program2_option = supported_extensions.contains("GL_NV_vertex_program2_option");
|
this.GL_NV_vertex_program2_option = supported_extensions.contains("GL_NV_vertex_program2_option");
|
||||||
this.GL_NV_vertex_program3 = supported_extensions.contains("GL_NV_vertex_program3");
|
this.GL_NV_vertex_program3 = supported_extensions.contains("GL_NV_vertex_program3");
|
||||||
|
this.GL_SGIS_generate_mipmap = supported_extensions.contains("GL_SGIS_generate_mipmap");
|
||||||
|
this.GL_SGIS_texture_lod = supported_extensions.contains("GL_SGIS_texture_lod");
|
||||||
this.GL_SUN_slice_accum = supported_extensions.contains("GL_SUN_slice_accum");
|
this.GL_SUN_slice_accum = supported_extensions.contains("GL_SUN_slice_accum");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +1,35 @@
|
||||||
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
||||||
|
|
||||||
package org.lwjgl.opengl;
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
import org.lwjgl.LWJGLException;
|
import org.lwjgl.LWJGLException;
|
||||||
import org.lwjgl.BufferChecks;
|
import org.lwjgl.BufferChecks;
|
||||||
import java.nio.*;
|
import java.nio.*;
|
||||||
|
|
||||||
public final class EXTTimerQuery {
|
public final class EXTTimerQuery {
|
||||||
/**
|
/**
|
||||||
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
|
* Accepted by the <target> parameter of BeginQuery, EndQuery, and
|
||||||
* GetQueryiv:
|
* GetQueryiv:
|
||||||
*/
|
*/
|
||||||
public static final int GL_TIME_ELAPSED_EXT = 0x88bf;
|
public static final int GL_TIME_ELAPSED_EXT = 0x88bf;
|
||||||
|
|
||||||
private EXTTimerQuery() {
|
private EXTTimerQuery() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) {
|
public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) {
|
||||||
long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjecti64vEXT_pointer;
|
long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjecti64vEXT_pointer;
|
||||||
BufferChecks.checkFunctionAddress(function_pointer);
|
BufferChecks.checkFunctionAddress(function_pointer);
|
||||||
BufferChecks.checkBuffer(params, 1);
|
BufferChecks.checkBuffer(params, 1);
|
||||||
nglGetQueryObjecti64vEXT(id, pname, params, params.position(), function_pointer);
|
nglGetQueryObjecti64vEXT(id, pname, params, params.position(), function_pointer);
|
||||||
}
|
}
|
||||||
private static native void nglGetQueryObjecti64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer);
|
private static native void nglGetQueryObjecti64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer);
|
||||||
|
|
||||||
public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) {
|
public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) {
|
||||||
long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjectui64vEXT_pointer;
|
long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjectui64vEXT_pointer;
|
||||||
BufferChecks.checkFunctionAddress(function_pointer);
|
BufferChecks.checkFunctionAddress(function_pointer);
|
||||||
BufferChecks.checkBuffer(params, 1);
|
BufferChecks.checkBuffer(params, 1);
|
||||||
nglGetQueryObjectui64vEXT(id, pname, params, params.position(), function_pointer);
|
nglGetQueryObjectui64vEXT(id, pname, params, params.position(), function_pointer);
|
||||||
}
|
}
|
||||||
private static native void nglGetQueryObjectui64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer);
|
private static native void nglGetQueryObjectui64vEXT(int id, int pname, LongBuffer params, int params_position, long function_pointer);
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
||||||
|
|
||||||
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
|
import org.lwjgl.LWJGLException;
|
||||||
|
import org.lwjgl.BufferChecks;
|
||||||
|
import java.nio.*;
|
||||||
|
|
||||||
|
public final class SGISGenerateMipmap {
|
||||||
|
/**
|
||||||
|
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
|
||||||
|
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
|
||||||
|
*/
|
||||||
|
public static final int GL_GENERATE_MIPMAP_SGIS = 0x8191;
|
||||||
|
/**
|
||||||
|
* Accepted by the <target> parameter of Hint, and by the <pname>
|
||||||
|
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
|
||||||
|
*/
|
||||||
|
public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
|
||||||
|
|
||||||
|
private SGISGenerateMipmap() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
||||||
|
|
||||||
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
|
import org.lwjgl.LWJGLException;
|
||||||
|
import org.lwjgl.BufferChecks;
|
||||||
|
import java.nio.*;
|
||||||
|
|
||||||
|
public final class SGISTextureLOD {
|
||||||
|
/**
|
||||||
|
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
|
||||||
|
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
|
||||||
|
*/
|
||||||
|
public static final int GL_TEXTURE_MIN_LOD_SGIS = 0x813a;
|
||||||
|
public static final int GL_TEXTURE_MAX_LOD_SGIS = 0x813b;
|
||||||
|
public static final int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813c;
|
||||||
|
public static final int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813d;
|
||||||
|
|
||||||
|
private SGISTextureLOD() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,20 +1,20 @@
|
||||||
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
||||||
|
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#include "extgl.h"
|
#include "extgl.h"
|
||||||
|
|
||||||
typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * params);
|
typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * params);
|
||||||
typedef void (APIENTRY *glGetQueryObjectui64vEXTPROC) (GLuint id, GLenum pname, GLuint64EXT * params);
|
typedef void (APIENTRY *glGetQueryObjectui64vEXTPROC) (GLuint id, GLenum pname, GLuint64EXT * params);
|
||||||
|
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjecti64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjecti64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||||
GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||||
glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer);
|
glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer);
|
||||||
glGetQueryObjecti64vEXT(id, pname, params_address);
|
glGetQueryObjecti64vEXT(id, pname, params_address);
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT(JNIEnv *env, jclass clazz, jint id, jint pname, jobject params, jint params_position, jlong function_pointer) {
|
||||||
GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
|
||||||
glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer);
|
glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer);
|
||||||
glGetQueryObjectui64vEXT(id, pname, params_address);
|
glGetQueryObjectui64vEXT(id, pname, params_address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2002-2004 LWJGL Project
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met:
|
||||||
|
*
|
||||||
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
*
|
||||||
|
* * Neither the name of 'LWJGL' nor the names of
|
||||||
|
* its contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
|
import org.lwjgl.util.generator.*;
|
||||||
|
|
||||||
|
public interface SGIS_generate_mipmap {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
|
||||||
|
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
|
||||||
|
*/
|
||||||
|
int GL_GENERATE_MIPMAP_SGIS = 0x8191;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accepted by the <target> parameter of Hint, and by the <pname>
|
||||||
|
* parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
|
||||||
|
*/
|
||||||
|
int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,47 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2002-2004 LWJGL Project
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met:
|
||||||
|
*
|
||||||
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
*
|
||||||
|
* * Neither the name of 'LWJGL' nor the names of
|
||||||
|
* its contributors may be used to endorse or promote products derived
|
||||||
|
* from this software without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
package org.lwjgl.opengl;
|
||||||
|
|
||||||
|
import org.lwjgl.util.generator.*;
|
||||||
|
|
||||||
|
@Extension(postfix = "SGIS", className = "SGISTextureLOD")
|
||||||
|
public interface SGIS_texture_lod {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accepted by the <pname> parameter of TexParameteri, TexParameterf,
|
||||||
|
* TexParameteriv, TexParameterfv, GetTexParameteriv, and GetTexParameterfv.
|
||||||
|
*/
|
||||||
|
int GL_TEXTURE_MIN_LOD_SGIS = 0x813A;
|
||||||
|
int GL_TEXTURE_MAX_LOD_SGIS = 0x813B;
|
||||||
|
int GL_TEXTURE_BASE_LEVEL_SGIS = 0x813C;
|
||||||
|
int GL_TEXTURE_MAX_LEVEL_SGIS = 0x813D;
|
||||||
|
}
|
Loading…
Reference in New Issue