New extensions

This commit is contained in:
Caspian Rychlik-Prince 2002-10-18 23:21:49 +00:00
parent 8b66ea95a5
commit 3878b20ccd
16 changed files with 658 additions and 33 deletions

View File

@ -57,6 +57,38 @@ public class CoreGL extends BaseGL implements CoreGLConstants {
public native void accum(int op, float value);
public native void alphaFunc(int func, float ref);
public native void colorTable(
int target,
int internalFormat,
int width,
int format,
int type,
int data);
public native void colorSubTable(
int target,
int start,
int count,
int format,
int type,
int data);
public native void getColorTable(
int target,
int format,
int type,
int data);
public native void getColorTableParameteriv(
int target,
int pname,
int params);
public native void getColorTableParameterfv(
int target,
int pname,
int params);
public native void clearColor(float red, float green, float blue, float alpha);
public native void clearAccum(float red, float green, float blue, float alpha);
public native void clear(int mask);

View File

@ -1337,14 +1337,10 @@ public class GL extends CoreGL implements GLConstants {
public static native void wglFreeMemoryNV(int pointer);
public static native int wglGetCurrentReadDCARB();
public static native String wglGetExtensionsStringARB(int hdc);
public static native String wglGetExtensionsStringEXT();
public static native int wglGetPbufferDCARB(int hPbuffer);
@ -1379,7 +1375,9 @@ public class GL extends CoreGL implements GLConstants {
public static native int wglReleasePbufferDCARB(int hPbuffer, int hDC);
public static native boolean wglReleaseTexImageARB(int hPbuffer, int iBuffer);
public static native boolean wglReleaseTexImageARB(
int hPbuffer,
int iBuffer);
public static native boolean wglRestoreBufferRegionARB(
int hRegion,
@ -1468,21 +1466,32 @@ public class GL extends CoreGL implements GLConstants {
public boolean ARB_window_pos;
public boolean EXT_abgr;
public boolean EXT_bgra;
public boolean EXT_blend_color;
public boolean EXT_blend_function_separate;
public boolean EXT_blend_minmax;
public boolean EXT_blend_subtract;
public boolean EXT_compiled_vertex_array;
public boolean EXT_cull_vertex;
public boolean EXT_draw_range_elements;
public boolean EXT_fog_coord;
public boolean EXT_light_max_exponent;
public boolean EXT_multi_draw_arrays;
public boolean EXT_packed_pixels;
public boolean EXT_paletted_texture;
public boolean EXT_point_parameters;
public boolean EXT_secondary_color ;
public boolean EXT_rescale_normal;
public boolean EXT_secondary_color;
public boolean EXT_separate_specular_color;
public boolean EXT_shadow_funcs;
public boolean EXT_shared_texture_palette;
public boolean EXT_stencil_two_side;
public boolean EXT_stencil_wrap;
public boolean EXT_texture_compression_s3tc;
public boolean EXT_texture_env_combine;
public boolean EXT_texture_env_dot3;
public boolean EXT_texture_filter_anisotropic;
public boolean EXT_texture_lod_bias;
public boolean EXT_vertex_array;
public boolean EXT_vertex_shader;
public boolean EXT_vertex_weighting;
public boolean ATI_element_array;
@ -1536,22 +1545,23 @@ public class GL extends CoreGL implements GLConstants {
* Determine which extensions are available
*/
private void determineAvailableExtensions() {
determineAvailableWGLExtensions();
// Grab all the public booleans out of this class
Field[] fields = GL.class.getDeclaredFields();
HashMap map = new HashMap(fields.length);
for (int i = 0; i < fields.length; i ++) {
if (!Modifier.isStatic(fields[i].getModifiers()) && fields[i].getType() == boolean.class)
for (int i = 0; i < fields.length; i++) {
if (!Modifier.isStatic(fields[i].getModifiers())
&& fields[i].getType() == boolean.class)
map.put(fields[i].getName(), fields[i]);
}
String exts = getString(EXTENSIONS);
StringTokenizer st = new StringTokenizer(exts);
while (st.hasMoreTokens()) {
String ext = st.nextToken();
Field f = (Field) map.get(ext);
if (f != null) {
try {
@ -1560,9 +1570,9 @@ public class GL extends CoreGL implements GLConstants {
e.printStackTrace(System.err);
}
}
}
// Let's see what openGL version we are too:
String version = getString(VERSION);
int i = version.indexOf("1.");
@ -1580,7 +1590,7 @@ public class GL extends CoreGL implements GLConstants {
}
}
}
/*
* Available WGL extensions
*/
@ -1588,7 +1598,7 @@ public class GL extends CoreGL implements GLConstants {
public static boolean WGL_ARB_extensions_string;
public static boolean WGL_ARB_pbuffer;
public static boolean WGL_ARB_pixel_format;
public static boolean WGL_ARB_render_texture;
public static boolean WGL_ARB_render_texture;
public static boolean WGL_EXT_extensions_string;
public static boolean WGL_EXT_swap_control;
@ -1597,42 +1607,44 @@ public class GL extends CoreGL implements GLConstants {
* if available.
*/
private static native void checkWGLExtensionsString();
/**
* Determine which WGL extensions are available
*/
private void determineAvailableWGLExtensions() {
// First we must determine if WGL_EXT_extensions_string is available
checkWGLExtensionsString();
if (!WGL_EXT_extensions_string && !WGL_ARB_extensions_string)
return;
// Grab all the public booleans out of this class
Field[] fields = GL.class.getDeclaredFields();
HashMap map = new HashMap(fields.length);
for (int i = 0; i < fields.length; i ++) {
if (Modifier.isStatic(fields[i].getModifiers()) && fields[i].getType() == boolean.class)
for (int i = 0; i < fields.length; i++) {
if (Modifier.isStatic(fields[i].getModifiers())
&& fields[i].getType() == boolean.class)
map.put(fields[i].getName(), fields[i]);
}
final String exts;
if (WGL_ARB_extensions_string)
exts = wglGetExtensionsStringARB(Display.getHandle()); // Remember - this is an HWND not an HDC, which is what's required
exts = wglGetExtensionsStringARB(Display.getHandle());
// Remember - this is an HWND not an HDC, which is what's required
else
exts = wglGetExtensionsStringEXT();
if (exts == null)
return;
System.out.println("Available WGL extensions:");
System.out.println("Available WGL extensions:");
StringTokenizer st = new StringTokenizer(exts);
while (st.hasMoreTokens()) {
String ext = st.nextToken();
System.out.println(ext);
Field f = (Field) map.get(ext);
if (f != null) {
try {
@ -1641,8 +1653,8 @@ public class GL extends CoreGL implements GLConstants {
e.printStackTrace(System.err);
}
}
}
}
}
/* (non-Javadoc)

View File

@ -39,7 +39,7 @@ import org.lwjgl.opengl.ati.ATIEnvmapBumpmap;
import org.lwjgl.opengl.atix.ATIXPointSprites;
import org.lwjgl.opengl.atix.ATIXTextureEnvRoute;
import org.lwjgl.opengl.ext.*;
import org.lwjgl.opengl.ext.EXTAgbr;
import org.lwjgl.opengl.ext.EXTAbgr;
import org.lwjgl.opengl.ext.EXTCompiledVertexArray;
import org.lwjgl.opengl.hp.HPOcclusionTest;
import org.lwjgl.opengl.nv.*;
@ -89,17 +89,28 @@ public interface GLConstants
ATIVertexStreams,
ATIXPointSprites,
ATIXTextureEnvRoute,
EXTAgbr,
EXTAbgr,
EXTBgra,
EXTBlendColor,
EXTBlendMinmax,
EXTCompiledVertexArray,
EXTDrawRangeElements,
EXTFogCoord,
EXTLightMaxExponent,
EXTPackedPixels,
EXTPointParameters,
EXTRescaleNormal,
EXTSecondaryColor,
EXTSeparateSpecularColor,
EXTSharedTexturePalette,
EXTStencilTwoSide,
EXTStencilWrap,
EXTTextureCompressionS3TC,
EXTTextureEnvCombine,
EXTTextureEnvDot3,
EXTTextureFilterAnisotropic,
EXTTextureLODBias,
EXTVertexArray,
EXTVertexShader,
EXTVertexWeighting,
HPOcclusionTest,

View File

@ -39,7 +39,7 @@
*/
package org.lwjgl.opengl.ext;
public interface EXTAgbr
public interface EXTAbgr
{
public static final int ABGR_EXT = 0x8000;

View File

@ -0,0 +1,45 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_bgra_constants
*
* @author: cas
*/
public interface EXTBgra {
/*
public static final int BGR_EXT = 0x80E0;
public static final int BGRA_EXT = 0x80E1;
*/
}

View File

@ -0,0 +1,46 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* Insert the type's description here.
* Creation date: (29/06/2000 00:45:10)
* @author:
*/
public interface EXTBlendColor {
public static final int CONSTANT_COLOR_EXT = 0x8001;
public static final int ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002;
public static final int CONSTANT_ALPHA_EXT = 0x8003;
public static final int ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
public static final int BLEND_COLOR_EXT = 0x8005;
}

View File

@ -0,0 +1,44 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_blend_minmax constants
* @author: cas
*/
public interface EXTBlendMinmax {
public static final int FUNC_ADD_EXT = 0x8006;
public static final int MIN_EXT = 0x8007;
public static final int MAX_EXT = 0x8008;
public static final int BLEND_EQUATION_EXT = 0x8009;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_blend_subtract constants
* @author: cas
*/
public interface EXTBlendSubtract {
public static final int FUNC_SUBTRACT_EXT = 0x800A;
public static final int FUNC_REVERSE_SUBTRACT_EXT = 0x800B;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_light_max_exponent constants
* @author: cas
*/
public interface EXTLightMaxExponent {
public static final int MAX_SHININESS_EXT = 0x8504;
public static final int MAX_SPOT_EXPONENT_EXT = 0x8505;
}

View File

@ -0,0 +1,46 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* Insert the type's description here.
* Creation date: (07/11/99 19:16:17)
* @author:
*/
public interface EXTPackedPixels {
public static final int UNSIGNED_BYTE_3_3_2_EXT = 0x8032;
public static final int UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033;
public static final int UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034;
public static final int UNSIGNED_INT_8_8_8_8_EXT = 0x8035;
public static final int UNSIGNED_INT_10_10_10_2_EXT = 0x8036;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_rescale_normal
* @author: cas
*/
public interface EXTRescaleNormal {
public static final int RESCALE_NORMAL_EXT = 0x803A;
}

View File

@ -0,0 +1,44 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_separate_specular_color constants.
* @author: cas
*/
public interface EXTSeparateSpecularColor {
public static final int SINGLE_COLOR_EXT = 0x81F9;
public static final int SEPARATE_SPECULAR_COLOR_EXT = 0x81FA;
public static final int LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8;
}

View File

@ -0,0 +1,42 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* Insert the type's description here.
* Creation date: (07/11/99 19:15:54)
* @author:
*/
public interface EXTSharedTexturePalette {
public static final int SHARED_TEXTURE_PALETTE_EXT = 0x81FB;
}

View File

@ -0,0 +1,62 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* Insert the type's description here.
* Creation date: (22/02/00 01:26:05)
* @author:
*/
public interface EXTTextureEnvCombine {
public static final int COMBINE_EXT = 0x8570;
public static final int COMBINE_RGB_EXT = 0x8571;
public static final int COMBINE_ALPHA_EXT = 0x8572;
public static final int SOURCE0_RGB_EXT = 0x8580;
public static final int SOURCE1_RGB_EXT = 0x8581;
public static final int SOURCE2_RGB_EXT = 0x8582;
public static final int SOURCE0_ALPHA_EXT = 0x8588;
public static final int SOURCE1_ALPHA_EXT = 0x8589;
public static final int SOURCE2_ALPHA_EXT = 0x858A;
public static final int OPERAND0_RGB_EXT = 0x8590;
public static final int OPERAND1_RGB_EXT = 0x8591;
public static final int OPERAND2_RGB_EXT = 0x8592;
public static final int OPERAND0_ALPHA_EXT = 0x8598;
public static final int OPERAND1_ALPHA_EXT = 0x8599;
public static final int OPERAND2_ALPHA_EXT = 0x859A;
public static final int RGB_SCALE_EXT = 0x8573;
public static final int ADD_SIGNED_EXT = 0x8574;
public static final int INTERPOLATE_EXT = 0x8575;
public static final int CONSTANT_EXT = 0x8576;
public static final int PRIMARY_COLOR_EXT = 0x8577;
public static final int PREVIOUS_EXT = 0x8578;
}

View File

@ -0,0 +1,43 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* EXT_texture_env_dot3 constants.
* @author: cas
*/
public interface EXTTextureEnvDot3 {
public static final int DOT3_RGB_EXT = 0x8740;
public static final int DOT3_RGBA_EXT = 0x8741;
}

View File

@ -0,0 +1,72 @@
/*
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.ext;
/**
* Insert the type's description here.
* Creation date: (07/11/99 18:58:04)
* @author:
*/
public interface EXTVertexArray {
public static final int VERTEX_ARRAY_EXT = 0x8074;
public static final int NORMAL_ARRAY_EXT = 0x8075;
public static final int COLOR_ARRAY_EXT = 0x8076;
public static final int INDEX_ARRAY_EXT = 0x8077;
public static final int TEXTURE_COORD_ARRAY_EXT = 0x8078;
public static final int EDGE_FLAG_ARRAY_EXT = 0x8079;
public static final int VERTEX_ARRAY_SIZE_EXT = 0x807A;
public static final int VERTEX_ARRAY_TYPE_EXT = 0x807B;
public static final int VERTEX_ARRAY_STRIDE_EXT = 0x807C;
public static final int VERTEX_ARRAY_COUNT_EXT = 0x807D;
public static final int NORMAL_ARRAY_TYPE_EXT = 0x807E;
public static final int NORMAL_ARRAY_STRIDE_EXT = 0x807F;
public static final int NORMAL_ARRAY_COUNT_EXT = 0x8080;
public static final int COLOR_ARRAY_SIZE_EXT = 0x8081;
public static final int COLOR_ARRAY_TYPE_EXT = 0x8082;
public static final int COLOR_ARRAY_STRIDE_EXT = 0x8083;
public static final int COLOR_ARRAY_COUNT_EXT = 0x8084;
public static final int INDEX_ARRAY_TYPE_EXT = 0x8085;
public static final int INDEX_ARRAY_STRIDE_EXT = 0x8086;
public static final int INDEX_ARRAY_COUNT_EXT = 0x8087;
public static final int TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088;
public static final int TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089;
public static final int TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A;
public static final int TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B;
public static final int EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C;
public static final int EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D;
public static final int VERTEX_ARRAY_POINTER_EXT = 0x808E;
public static final int NORMAL_ARRAY_POINTER_EXT = 0x808F;
public static final int COLOR_ARRAY_POINTER_EXT = 0x8090;
public static final int INDEX_ARRAY_POINTER_EXT = 0x8091;
public static final int TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092;
public static final int EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093;
}