diff --git a/build.xml b/build.xml
index 6abd8d7c..1e8bbabb 100644
--- a/build.xml
+++ b/build.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java b/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java
index 8cb468c1..1c9daa65 100644
--- a/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java
+++ b/src/generated/org/lwjgl/opengl/ATITextFragmentShader.java
@@ -1,24 +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 ATITextFragmentShader {
- /**
- * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
- * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
- * and GetDoublev, and by the <target> parameter of ProgramStringARB,
- * BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB,
- * ProgramLocalParameter4{d,dv,f,fv}ARB,
- * GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB,
- * GetProgramivARB, GetProgramfvATI, and GetProgramStringARB.
- */
- public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200;
-
- private ATITextFragmentShader() {
- }
-
-}
+/* MACHINE GENERATED FILE, DO NOT EDIT */
+
+package org.lwjgl.opengl;
+
+import org.lwjgl.LWJGLException;
+import org.lwjgl.BufferChecks;
+import java.nio.*;
+
+public final class ATITextFragmentShader {
+ /**
+ * Accepted by the <cap> parameter of Disable, Enable, and IsEnabled,
+ * and by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
+ * and GetDoublev, and by the <target> parameter of ProgramStringARB,
+ * BindProgramARB, ProgramEnvParameter4{d,dv,f,fv}ARB,
+ * ProgramLocalParameter4{d,dv,f,fv}ARB,
+ * GetProgramEnvParameter{dv,fv}ARB, GetProgramLocalParameter{dv,fv}ARB,
+ * GetProgramivARB, GetProgramfvATI, and GetProgramStringARB.
+ */
+ public static final int GL_TEXT_FRAGMENT_SHADER_ATI = 0x8200;
+
+ private ATITextFragmentShader() {
+ }
+
+}
diff --git a/src/generated/org/lwjgl/opengl/ContextCapabilities.java b/src/generated/org/lwjgl/opengl/ContextCapabilities.java
index dbbb55b2..7bc8fd58 100644
--- a/src/generated/org/lwjgl/opengl/ContextCapabilities.java
+++ b/src/generated/org/lwjgl/opengl/ContextCapabilities.java
@@ -144,6 +144,8 @@ public class ContextCapabilities {
public final boolean GL_NV_vertex_program2;
public final boolean GL_NV_vertex_program2_option;
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;
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_option = supported_extensions.contains("GL_NV_vertex_program2_option");
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");
}
}
diff --git a/src/generated/org/lwjgl/opengl/EXTTimerQuery.java b/src/generated/org/lwjgl/opengl/EXTTimerQuery.java
index 72e82701..a36a8742 100644
--- a/src/generated/org/lwjgl/opengl/EXTTimerQuery.java
+++ b/src/generated/org/lwjgl/opengl/EXTTimerQuery.java
@@ -1,35 +1,35 @@
-/* MACHINE GENERATED FILE, DO NOT EDIT */
-
-package org.lwjgl.opengl;
-
-import org.lwjgl.LWJGLException;
-import org.lwjgl.BufferChecks;
-import java.nio.*;
-
-public final class EXTTimerQuery {
- /**
- * Accepted by the <target> parameter of BeginQuery, EndQuery, and
- * GetQueryiv:
- */
- public static final int GL_TIME_ELAPSED_EXT = 0x88bf;
-
- private EXTTimerQuery() {
- }
-
-
- public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) {
- long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjecti64vEXT_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkBuffer(params, 1);
- 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);
-
- public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) {
- long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjectui64vEXT_pointer;
- BufferChecks.checkFunctionAddress(function_pointer);
- BufferChecks.checkBuffer(params, 1);
- 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);
-}
+/* MACHINE GENERATED FILE, DO NOT EDIT */
+
+package org.lwjgl.opengl;
+
+import org.lwjgl.LWJGLException;
+import org.lwjgl.BufferChecks;
+import java.nio.*;
+
+public final class EXTTimerQuery {
+ /**
+ * Accepted by the <target> parameter of BeginQuery, EndQuery, and
+ * GetQueryiv:
+ */
+ public static final int GL_TIME_ELAPSED_EXT = 0x88bf;
+
+ private EXTTimerQuery() {
+ }
+
+
+ public static void glGetQueryObjectEXT(int id, int pname, LongBuffer params) {
+ long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjecti64vEXT_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkBuffer(params, 1);
+ 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);
+
+ public static void glGetQueryObjectuEXT(int id, int pname, LongBuffer params) {
+ long function_pointer = GLContext.getCapabilities().EXT_timer_query_glGetQueryObjectui64vEXT_pointer;
+ BufferChecks.checkFunctionAddress(function_pointer);
+ BufferChecks.checkBuffer(params, 1);
+ 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);
+}
diff --git a/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java b/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java
new file mode 100644
index 00000000..dfa8292f
--- /dev/null
+++ b/src/generated/org/lwjgl/opengl/SGISGenerateMipmap.java
@@ -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
+ * parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
+ */
+ public static final int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
+
+ private SGISGenerateMipmap() {
+ }
+
+}
diff --git a/src/generated/org/lwjgl/opengl/SGISTextureLOD.java b/src/generated/org/lwjgl/opengl/SGISTextureLOD.java
new file mode 100644
index 00000000..704ac591
--- /dev/null
+++ b/src/generated/org/lwjgl/opengl/SGISTextureLOD.java
@@ -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() {
+ }
+
+}
diff --git a/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c b/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c
index 9d78cb2c..ca108131 100644
--- a/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c
+++ b/src/native/generated/org_lwjgl_opengl_EXTTimerQuery.c
@@ -1,20 +1,20 @@
-/* MACHINE GENERATED FILE, DO NOT EDIT */
-
-#include
-#include "extgl.h"
-
-typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * 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) {
- GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
- glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer);
- 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) {
- GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
- glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer);
- glGetQueryObjectui64vEXT(id, pname, params_address);
-}
-
+/* MACHINE GENERATED FILE, DO NOT EDIT */
+
+#include
+#include "extgl.h"
+
+typedef void (APIENTRY *glGetQueryObjecti64vEXTPROC) (GLuint id, GLenum pname, GLint64EXT * 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) {
+ GLint64EXT *params_address = ((GLint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
+ glGetQueryObjecti64vEXTPROC glGetQueryObjecti64vEXT = (glGetQueryObjecti64vEXTPROC)((intptr_t)function_pointer);
+ 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) {
+ GLuint64EXT *params_address = ((GLuint64EXT *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
+ glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)((intptr_t)function_pointer);
+ glGetQueryObjectui64vEXT(id, pname, params_address);
+}
+
diff --git a/src/templates/org/lwjgl/opengl/SGIS_generate_mipmap.java b/src/templates/org/lwjgl/opengl/SGIS_generate_mipmap.java
new file mode 100644
index 00000000..0ea351e2
--- /dev/null
+++ b/src/templates/org/lwjgl/opengl/SGIS_generate_mipmap.java
@@ -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
+ * parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
+ */
+ int GL_GENERATE_MIPMAP_HINT_SGIS = 0x8192;
+
+}
\ No newline at end of file
diff --git a/src/templates/org/lwjgl/opengl/SGIS_texture_lod.java b/src/templates/org/lwjgl/opengl/SGIS_texture_lod.java
new file mode 100644
index 00000000..3e29f2eb
--- /dev/null
+++ b/src/templates/org/lwjgl/opengl/SGIS_texture_lod.java
@@ -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;
+}
\ No newline at end of file