You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
|
2
(10) |
3
(47) |
|
4
(12) |
5
(15) |
6
(14) |
7
(5) |
8
|
9
(1) |
10
|
|
11
(6) |
12
|
13
|
14
|
15
(3) |
16
(3) |
17
(5) |
|
18
|
19
(2) |
20
|
21
(11) |
22
(12) |
23
(5) |
24
(12) |
|
25
(6) |
26
(13) |
27
(2) |
28
(2) |
29
(9) |
30
(4) |
31
(2) |
|
From: Elias N. <eli...@us...> - 2004-07-04 14:09:22
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv953/src/java/org/lwjgl/openal Modified Files: AL.java Log Message: take out check on alcMakeContext again, the result type is differs on different platforms Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- AL.java 4 Jul 2004 13:58:11 -0000 1.28 +++ AL.java 4 Jul 2004 14:08:53 -0000 1.29 @@ -189,8 +189,7 @@ context = ALC.alcCreateContext(device.device, ALCcontext.createAttributeList(contextFrequency, contextRefresh, contextSynchronized)); } - if (ALC.alcMakeContextCurrent(context.context) != 0) - throw new LWJGLException("Could not make ALC context current"); + ALC.alcMakeContextCurrent(context.context); created = true; } catch (LWJGLException e) { destroy(); |
|
From: Elias N. <eli...@us...> - 2004-07-04 13:59:07
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31647/src/java/org/lwjgl/openal Modified Files: AL.java ALC.java Log Message: Added more error checking in OpenAL. Unload native stubs on AL destroy. Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- AL.java 4 Jul 2004 13:14:05 -0000 1.27 +++ AL.java 4 Jul 2004 13:58:11 -0000 1.28 @@ -125,15 +125,7 @@ create(); } - /** - * Creates an OpenAL instance. The empty create will cause OpenAL to - * open the default device, and create a context using default values. - */ - public static void create() throws LWJGLException { - if(created) { - return; - } - + private static String[] getOALPaths() throws LWJGLException { // need to pass path of possible locations of OAL to native side String libpath = System.getProperty("java.library.path"); String seperator = System.getProperty("path.separator"); @@ -168,43 +160,58 @@ //add cwd path oalPaths[oalPaths.length - 1] = ""; - nCreate(oalPaths); - - AL10.initNativeStubs(); - ALC.create(); + return oalPaths; + } - device = ALC.alcOpenDevice(deviceArguments); - if (device == null) { - ALC.destroy(); - throw new LWJGLException("Could not open ALC device"); - } - //check if doing default values or not - if (contextFrequency == -1) { - context = ALC.alcCreateContext(device.device, null); - } else { - context = ALC.alcCreateContext(device.device, - ALCcontext.createAttributeList(contextFrequency, contextRefresh, contextSynchronized)); + /** + * Creates an OpenAL instance. The empty create will cause OpenAL to + * open the default device, and create a context using default values. + */ + public static void create() throws LWJGLException { + if (created) { + return; } + String[] oalPaths = getOALPaths(); + nCreate(oalPaths); + created = true; - ALC.alcMakeContextCurrent(context.context); + try { + AL10.initNativeStubs(); + ALC.initNativeStubs(); - created = true; + device = ALC.alcOpenDevice(deviceArguments); + if (device == null) + throw new LWJGLException("Could not open ALC device"); + //check if doing default values or not + if (contextFrequency == -1) { + context = ALC.alcCreateContext(device.device, null); + } else { + context = ALC.alcCreateContext(device.device, + ALCcontext.createAttributeList(contextFrequency, contextRefresh, contextSynchronized)); + } + if (ALC.alcMakeContextCurrent(context.context) != 0) + throw new LWJGLException("Could not make ALC context current"); + created = true; + } catch (LWJGLException e) { + destroy(); + throw e; + } } /** * Exit cleanly by calling destroy. */ public static void destroy() { - if(!created) { - return; + if (context != null) { + ALC.alcDestroyContext(context.context); + context = null; } - - ALC.alcDestroyContext(context.context); - ALC.alcCloseDevice(device.device); - ALC.destroy(); - - device = null; - context = null; + if (device != null) { + ALC.alcCloseDevice(device.device); + device = null; + } + resetNativeStubs(AL10.class); + resetNativeStubs(ALC.class); deviceArguments = null; @@ -212,8 +219,9 @@ contextRefresh = -1; contextSynchronized = ALC.ALC_FALSE; + if (created) + nDestroy(); created = false; - nDestroy(); } /** @@ -242,5 +250,7 @@ Sys.log("Failure locating OpenAL using classloader:" + e); } return null; - } + } + + private static native void resetNativeStubs(Class clazz); } Index: ALC.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- ALC.java 4 Jul 2004 13:14:05 -0000 1.20 +++ ALC.java 4 Jul 2004 13:58:11 -0000 1.21 @@ -67,9 +67,6 @@ * @version $Revision$ */ public class ALC { - /** Has the ALC object been created? */ - protected static boolean created; - /** Bad value */ public static final int ALC_INVALID = -1; @@ -146,41 +143,13 @@ Sys.initialize(); } - /** Creates a new instance of ALC */ - protected ALC() { - } - /** * Override to provide any initialization code after creation. */ protected static void init() { } - /** - * Creates the ALC instance - * - * @throws LWJGLException if a failiure occured in the ALC creation process - */ - protected static void create() throws LWJGLException { - if (created) { - return; - } - initNativeStubs(); - init(); - created = true; - } - - private static native void initNativeStubs() throws LWJGLException; - - /** - * Calls whatever destruction rutines that are needed - */ - protected static void destroy() { - if (!created) { - return; - } - created = false; - } + static native void initNativeStubs() throws LWJGLException; /** * The application can obtain certain strings from ALC. @@ -284,7 +253,7 @@ * @param context address of context to make current * @return true if successfull, false if not */ - native static boolean alcMakeContextCurrent(int context); + native static int alcMakeContextCurrent(int context); /** * The current context is the only context accessible to state changes by AL commands |
|
From: Elias N. <eli...@us...> - 2004-07-04 13:58:51
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31647/src/native/common Modified Files: common_tools.cpp org_lwjgl_openal_AL.cpp org_lwjgl_openal_AL.h org_lwjgl_openal_ALC.cpp Log Message: Added more error checking in OpenAL. Unload native stubs on AL destroy. Index: org_lwjgl_openal_ALC.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- org_lwjgl_openal_ALC.cpp 4 Jul 2004 09:13:18 -0000 1.16 +++ org_lwjgl_openal_ALC.cpp 4 Jul 2004 13:58:11 -0000 1.17 @@ -49,7 +49,7 @@ typedef ALCdevice* (ALCAPIENTRY *alcOpenDevicePROC)(ALCubyte *deviceName); typedef ALCvoid (ALCAPIENTRY *alcCloseDevicePROC)(ALCdevice *device); typedef ALCcontext* (ALCAPIENTRY *alcCreateContextPROC)(ALCdevice *device,ALCint *attrList); -typedef ALCboolean (ALCAPIENTRY *alcMakeContextCurrentPROC)(ALCcontext *context); +typedef ALCenum (ALCAPIENTRY *alcMakeContextCurrentPROC)(ALCcontext *context); typedef ALCvoid (ALCAPIENTRY *alcProcessContextPROC)(ALCcontext *context); typedef ALCdevice* (ALCAPIENTRY *alcGetContextsDevicePROC)(ALCcontext *context); typedef ALCvoid (ALCAPIENTRY *alcSuspendContextPROC)(ALCcontext *context); @@ -205,12 +205,15 @@ * C Specification: * ALCboolean alcMakeContextCurrent(ALCcontext *context); */ -static jboolean JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jint contextaddress) { +static jint JNICALL Java_org_lwjgl_openal_ALC_alcMakeContextCurrent (JNIEnv *env, jclass clazz, jint contextaddress) { ALCcontext* context = (ALCcontext*) contextaddress; + ALCenum result; if(context == NULL) { - return alcMakeContextCurrent(NULL); + result = alcMakeContextCurrent(NULL); + } else { + result = alcMakeContextCurrent(context); } - return alcMakeContextCurrent(context); + return result; } /** @@ -360,7 +363,7 @@ {"alcOpenDevice", "(Ljava/lang/String;)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcOpenDevice, "alcOpenDevice", (void**)&alcOpenDevice}, {"alcCloseDevice", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_alcCloseDevice, "alcCloseDevice", (void**)&alcCloseDevice}, {"alcCreateContext", "(ILjava/nio/IntBuffer;)Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcCreateContext, "alcCreateContext", (void**)&alcCreateContext}, - {"alcMakeContextCurrent", "(I)Z", (void*)&Java_org_lwjgl_openal_ALC_alcMakeContextCurrent, "alcMakeContextCurrent", (void**)&alcMakeContextCurrent}, + {"alcMakeContextCurrent", "(I)I", (void*)&Java_org_lwjgl_openal_ALC_alcMakeContextCurrent, "alcMakeContextCurrent", (void**)&alcMakeContextCurrent}, {"nalcProcessContext", "(I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcProcessContext, "alcProcessContext", (void**)&alcProcessContext}, {"alcGetCurrentContext", "()Lorg/lwjgl/openal/ALCcontext;", (void*)&Java_org_lwjgl_openal_ALC_alcGetCurrentContext, "alcGetCurrentContext", (void**)&alcGetCurrentContext}, {"alcGetContextsDevice", "(I)Lorg/lwjgl/openal/ALCdevice;", (void*)&Java_org_lwjgl_openal_ALC_alcGetContextsDevice, "alcGetContextsDevice", (void**)&alcGetContextsDevice}, Index: org_lwjgl_openal_AL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_AL.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_openal_AL.h 26 Feb 2004 21:54:05 -0000 1.2 +++ org_lwjgl_openal_AL.h 4 Jul 2004 13:58:11 -0000 1.3 @@ -15,6 +15,8 @@ /* Inaccessible static: contextRefresh */ /* Inaccessible static: contextSynchronized */ /* Inaccessible static: created */ +/* Inaccessible static: class_00024org_00024lwjgl_00024openal_00024AL10 */ +/* Inaccessible static: class_00024org_00024lwjgl_00024openal_00024ALC */ /* Inaccessible static: class_00024org_00024lwjgl_00024openal_00024AL */ /* Inaccessible static: class_00024java_00024lang_00024String */ /* @@ -33,6 +35,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL_nDestroy (JNIEnv *, jclass); +/* + * Class: org_lwjgl_openal_AL + * Method: resetNativeStubs + * Signature: (Ljava/lang/Class;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL_resetNativeStubs + (JNIEnv *, jclass, jclass); + #ifdef __cplusplus } #endif Index: org_lwjgl_openal_AL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_AL.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_openal_AL.cpp 12 Jun 2004 20:28:29 -0000 1.2 +++ org_lwjgl_openal_AL.cpp 4 Jul 2004 13:58:11 -0000 1.3 @@ -43,3 +43,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL_nDestroy(JNIEnv *env, jclass clazz) { DeInitializeOpenAL(); } + +JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL_resetNativeStubs(JNIEnv *env, jclass clazz, jclass al_class) { + env->UnregisterNatives(al_class); +} Index: common_tools.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- common_tools.cpp 4 Jul 2004 13:14:06 -0000 1.26 +++ common_tools.cpp 4 Jul 2004 13:58:11 -0000 1.27 @@ -176,7 +176,7 @@ method->signature = function->signature; method->fnPtr = function->method_pointer; } - jint result = env->RegisterNatives(clazz, methods, num_functions); + env->RegisterNatives(clazz, methods, num_functions); free(methods); } |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25188/src/java/org/lwjgl/opengl Modified Files: ARBBufferObject.java ARBImaging.java ARBMatrixPalette.java ARBMultisample.java ARBMultitexture.java ARBOcclusionQuery.java ARBPointParameters.java ARBProgram.java ARBShaderObjects.java ARBTextureCompression.java ARBTransposeMatrix.java ARBVertexBlend.java ARBVertexProgram.java ARBVertexShader.java ARBWindowPos.java ATIDrawBuffers.java ATIElementArray.java ATIEnvmapBumpmap.java ATIFragmentShader.java ATIMapObjectBuffer.java ATIPnTriangles.java ATISeparateStencil.java ATIVertexArrayObject.java ATIVertexAttribArrayObject.java ATIVertexStreams.java EXTBlendEquationSeparate.java EXTBlendFuncSeparate.java EXTCompiledVertexArray.java EXTDepthBoundsTest.java EXTDrawRangeElements.java EXTFogCoord.java EXTMultiDrawArrays.java EXTPointParameters.java EXTSecondaryColor.java EXTStencilTwoSide.java EXTVertexShader.java EXTVertexWeighting.java GL11.java GL12.java GL13.java GL14.java GL15.java NVEvaluators.java NVFence.java NVFragmentProgram.java NVHalfFloat.java NVOcclusionQuery.java NVPixelDataRange.java NVPointSprite.java NVPrimitiveRestart.java NVProgram.java NVRegisterCombiners.java NVRegisterCombiners2.java NVVertexArrayRange.java NVVertexProgram.java Log Message: all initNativeStub() methods throws LWJGLException Index: EXTVertexShader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTVertexShader.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- EXTVertexShader.java 3 Jul 2004 21:12:27 -0000 1.6 +++ EXTVertexShader.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -37,6 +37,7 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; public final class EXTVertexShader { public static final int GL_VERTEX_SHADER_EXT = 0x8780; @@ -150,7 +151,7 @@ public static final int GL_LOCAL_CONSTANT_VALUE_EXT = 0x87EC; public static final int GL_LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glBeginVertexShaderEXT(); public static native void glEndVertexShaderEXT(); Index: ATIEnvmapBumpmap.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIEnvmapBumpmap.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ATIEnvmapBumpmap.java 3 Jul 2004 21:12:27 -0000 1.5 +++ ATIEnvmapBumpmap.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -34,6 +34,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ATIEnvmapBumpmap { public static final int GL_BUMP_ROT_MATRIX_ATI = 0x8775; public static final int GL_BUMP_ROT_MATRIX_SIZE_ATI = 0x8776; @@ -44,7 +46,7 @@ public static final int GL_BUMP_ENVMAP_ATI = 0x877B; public static final int GL_BUMP_TARGET_ATI = 0x877C; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glTexBumpParameterATI(int pname, FloatBuffer pfParam) { BufferChecks.checkBuffer(pfParam); Index: ARBShaderObjects.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBShaderObjects.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ARBShaderObjects.java 3 Jul 2004 21:12:27 -0000 1.7 +++ ARBShaderObjects.java 4 Jul 2004 13:14:05 -0000 1.8 @@ -36,6 +36,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ARBShaderObjects { /* @@ -90,7 +92,7 @@ public static final int GL_SAMPLER_2D_RECT_ARB = 0x8B63; public static final int GL_SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glDeleteObjectARB(int obj); Index: NVFence.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVFence.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVFence.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVFence.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,12 +33,14 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class NVFence { public static final int GL_ALL_COMPLETED_NV = 0x84F2; public static final int GL_FENCE_STATUS_NV = 0x84F3; public static final int GL_FENCE_CONDITION_NV = 0x84F4; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glGenFencesNV(IntBuffer piFences) { nglGenFencesNV(piFences.remaining(), piFences, piFences.position()); Index: ARBOcclusionQuery.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBOcclusionQuery.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBOcclusionQuery.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBOcclusionQuery.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -33,6 +33,8 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ARBOcclusionQuery { /* @@ -54,7 +56,7 @@ public static final int GL_QUERY_RESULT_ARB = 0x8866; public static final int GL_QUERY_RESULT_AVAILABLE_ARB = 0x8867; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glGenQueriesARB(IntBuffer ids) { Index: EXTVertexWeighting.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTVertexWeighting.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- EXTVertexWeighting.java 3 Jul 2004 21:12:27 -0000 1.6 +++ EXTVertexWeighting.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -34,6 +34,7 @@ import java.nio.Buffer; import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; public final class EXTVertexWeighting { public static final int GL_MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3; /* alias to MODELVIEW_STACK_DEPTH */ @@ -50,7 +51,7 @@ public static final int GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F; public static final int GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glVertexWeightfEXT(float weight); Index: GL13.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL13.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- GL13.java 3 Jul 2004 21:12:27 -0000 1.8 +++ GL13.java 4 Jul 2004 13:14:05 -0000 1.9 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + /** * $Id$ * @@ -148,7 +150,7 @@ public static final int GL_DOT3_RGBA = 0x86AF; public static final int GL_CLAMP_TO_BORDER = 0x812D; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glActiveTexture(int texture); public static native void glClientActiveTexture(int texture); Index: ARBVertexProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBVertexProgram.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ARBVertexProgram.java 3 Jul 2004 21:12:27 -0000 1.8 +++ ARBVertexProgram.java 4 Jul 2004 13:14:05 -0000 1.9 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class ARBVertexProgram extends ARBProgram { /* @@ -87,7 +89,7 @@ */ public static final int GL_MAX_VERTEX_ATTRIBS_ARB = 0x8869; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glVertexAttrib1sARB(int index, short x); Index: NVPrimitiveRestart.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVPrimitiveRestart.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NVPrimitiveRestart.java 3 Jul 2004 21:12:27 -0000 1.4 +++ NVPrimitiveRestart.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class NVPrimitiveRestart { /* @@ -47,7 +49,7 @@ */ public static final int GL_PRIMITIVE_RESTART_INDEX_NV = 0x8559; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glPrimitiveRestartNV(); Index: GL15.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL15.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- GL15.java 3 Jul 2004 21:12:27 -0000 1.7 +++ GL15.java 4 Jul 2004 13:14:05 -0000 1.8 @@ -33,6 +33,8 @@ import java.nio.*; +import org.lwjgl.LWJGLException; + public final class GL15 { // ---------------------------------------------------------------------- @@ -71,7 +73,7 @@ public static final int GL_BUFFER_MAPPED = 0x88BC; public static final int GL_BUFFER_MAP_POINTER = 0x88BD; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glBindBuffer(int target, int buffer) { switch ( target ) { Index: ARBImaging.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBImaging.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBImaging.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBImaging.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -39,6 +39,7 @@ import java.nio.ShortBuffer; import org.lwjgl.BufferUtils; +import org.lwjgl.LWJGLException; /** * $Id$ @@ -126,7 +127,7 @@ public static final int GL_MINMAX_FORMAT = 0x802F; public static final int GL_MINMAX_SINK = 0x8030; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glColorTable(int target, int internalFormat, int width, int format, int type, ByteBuffer data) { BufferChecks.checkBuffer(data, 256); Index: ARBTextureCompression.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBTextureCompression.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBTextureCompression.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBTextureCompression.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class ARBTextureCompression { public static final int GL_COMPRESSED_ALPHA_ARB = 0x84E9; @@ -51,7 +53,7 @@ public static final int GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2; public static final int GL_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, ByteBuffer pData) { nglCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData, pData.position()); Index: ARBTransposeMatrix.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBTransposeMatrix.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ARBTransposeMatrix.java 3 Jul 2004 21:12:27 -0000 1.7 +++ ARBTransposeMatrix.java 4 Jul 2004 13:14:05 -0000 1.8 @@ -33,13 +33,15 @@ import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class ARBTransposeMatrix { public static final int GL_TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3; public static final int GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4; public static final int GL_TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5; public static final int GL_TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glLoadTransposeMatrixARB(FloatBuffer pfMtx) { BufferChecks.checkBuffer(pfMtx, 16); Index: ATIFragmentShader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIFragmentShader.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ATIFragmentShader.java 3 Jul 2004 21:12:27 -0000 1.5 +++ ATIFragmentShader.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -38,6 +38,8 @@ import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class ATIFragmentShader { public static final int GL_FRAGMENT_SHADER_ATI = 0x8920; public static final int GL_REG_0_ATI = 0x8921; @@ -144,7 +146,7 @@ public static final int GL_NEGATE_BIT_ATI = 0x00000004; public static final int GL_BIAS_BIT_ATI = 0x00000008; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native int glGenFragmentShadersATI(int range); Index: ATIPnTriangles.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIPnTriangles.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ATIPnTriangles.java 3 Jul 2004 21:12:27 -0000 1.5 +++ ATIPnTriangles.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ATIPnTriangles { public static final int GL_PN_TRIANGLES_ATI = 0x87F0; public static final int GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1; @@ -42,7 +44,7 @@ public static final int GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7; public static final int GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glPNTrianglesfATI(int pname, float param); Index: GL12.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL12.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- GL12.java 3 Jul 2004 21:12:27 -0000 1.10 +++ GL12.java 4 Jul 2004 13:14:05 -0000 1.11 @@ -38,6 +38,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + /** * $Id$ * @@ -89,7 +91,7 @@ public static final int GL_ALIASED_POINT_SIZE_RANGE = 0x846D; public static final int GL_ALIASED_LINE_WIDTH_RANGE = 0x846E; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glDrawRangeElements(int mode, int start, int end, ByteBuffer indices) { BufferChecks.ensureElementVBOdisabled(); Index: EXTSecondaryColor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTSecondaryColor.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- EXTSecondaryColor.java 3 Jul 2004 21:12:27 -0000 1.6 +++ EXTSecondaryColor.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -35,6 +35,7 @@ import java.nio.ByteBuffer; import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; public final class EXTSecondaryColor { public static final int GL_COLOR_SUM_EXT = 0x8458; @@ -45,7 +46,7 @@ public static final int GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D; public static final int GL_SECONDARY_COLOR_ARRAY_EXT = 0x845E; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glSecondaryColor3bEXT(byte red, byte green, byte blue); Index: ARBVertexBlend.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBVertexBlend.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBVertexBlend.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBVertexBlend.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -37,6 +37,7 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; public final class ARBVertexBlend { public static final int GL_MAX_VERTEX_UNITS_ARB = 0x86A4; @@ -82,7 +83,7 @@ public static final int GL_MODELVIEW30_ARB = 0x873E; public static final int GL_MODELVIEW31_ARB = 0x873F; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glWeightARB(ByteBuffer pWeights) { nglWeightbvARB(pWeights.remaining(), pWeights, pWeights.position()); Index: GL14.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL14.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- GL14.java 3 Jul 2004 21:12:27 -0000 1.9 +++ GL14.java 4 Jul 2004 13:14:05 -0000 1.10 @@ -36,6 +36,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + /** * $Id$ * @@ -85,7 +87,7 @@ public static final int GL_MAX_TEXTURE_LOD_BIAS = 0x84FD; public static final int GL_GL_MIRRORED_REPEAT = 0x8370; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glBlendEquation(int mode); public static native void glBlendColor(float red, float green, float blue, float alpha); Index: ARBBufferObject.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBBufferObject.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ARBBufferObject.java 3 Jul 2004 21:12:27 -0000 1.4 +++ ARBBufferObject.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class ARBBufferObject { /* @@ -68,7 +70,7 @@ public static final int GL_BUFFER_MAPPED_ARB = 0x88BC; public static final int GL_BUFFER_MAP_POINTER_ARB = 0x88BD; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glBindBufferARB(int target, int buffer) { switch (target) { Index: ARBVertexShader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBVertexShader.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ARBVertexShader.java 3 Jul 2004 21:12:27 -0000 1.8 +++ ARBVertexShader.java 4 Jul 2004 13:14:05 -0000 1.9 @@ -34,6 +34,8 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ARBVertexShader { /* @@ -94,7 +96,7 @@ public static final int GL_FLOAT_MAT3_ARB = 0x8B5B; public static final int GL_FLOAT_MAT4_ARB = 0x8B5C; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glBindAttribLocationARB(int programObj, int index, ByteBuffer name) { Index: ATISeparateStencil.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATISeparateStencil.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ATISeparateStencil.java 3 Jul 2004 21:12:27 -0000 1.4 +++ ATISeparateStencil.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,13 +31,15 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ATISeparateStencil { public static final int GL_STENCIL_BACK_FUNC_ATI = 0x8800; public static final int GL_STENCIL_BACK_FAIL_ATI = 0x8801; public static final int GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802; public static final int GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glStencilOpSeparateATI(int face, int sfail, int dpfail, int dppass); public static native void glStencilFuncSeparateATI(int frontfunc, int backfunc, int ref, int mask); Index: ARBMatrixPalette.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBMatrixPalette.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ARBMatrixPalette.java 3 Jul 2004 21:12:27 -0000 1.7 +++ ARBMatrixPalette.java 4 Jul 2004 13:14:05 -0000 1.8 @@ -36,6 +36,7 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; public final class ARBMatrixPalette { public static final int GL_MATRIX_PALETTE_ARB = 0x8840; @@ -49,7 +50,7 @@ public static final int GL_MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848; public static final int GL_MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glCurrentPaletteMatrixARB(int index); public static void glMatrixIndexPointerARB(int size, int stride, ByteBuffer pPointer) { Index: NVRegisterCombiners.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVRegisterCombiners.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVRegisterCombiners.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVRegisterCombiners.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -34,6 +34,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class NVRegisterCombiners { public static final int GL_REGISTER_COMBINERS_NV = 0x8522; public static final int GL_COMBINER0_NV = 0x8550; @@ -87,7 +89,7 @@ public static final int GL_COLOR_SUM_CLAMP_NV = 0x854F; public static final int GL_MAX_GENERAL_COMBINERS_NV = 0x854D; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glCombinerParameterfNV(int pname, float param); Index: NVProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVProgram.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- NVProgram.java 3 Jul 2004 21:12:27 -0000 1.6 +++ NVProgram.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -35,6 +35,8 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public class NVProgram { /* @@ -60,7 +62,7 @@ */ public static final int GL_PROGRAM_ERROR_STRING_NV = 0x8874; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glLoadProgramNV(int target, int programID, ByteBuffer string) { Index: EXTBlendEquationSeparate.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTBlendEquationSeparate.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- EXTBlendEquationSeparate.java 3 Jul 2004 21:12:27 -0000 1.3 +++ EXTBlendEquationSeparate.java 4 Jul 2004 13:14:05 -0000 1.4 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class EXTBlendEquationSeparate { /* @@ -40,7 +42,7 @@ public static final int GL_BLEND_EQUATION_RGB_EXT = 0x8009; public static final int GL_BLEND_EQUATION_ALPHA_EXT = 0x883D; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glBlendEquationSeparateEXT(int modeRGB, int modeAlpha); Index: EXTBlendFuncSeparate.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTBlendFuncSeparate.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- EXTBlendFuncSeparate.java 3 Jul 2004 21:12:27 -0000 1.4 +++ EXTBlendFuncSeparate.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + /** * Insert the type's description here. * Creation date: (29/06/2000 00:45:10) @@ -41,7 +43,7 @@ public static final int GL_BLEND_DST_ALPHA_EXT = 0x80CA; public static final int GL_BLEND_SRC_ALPHA_EXT = 0x80CB; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glBlendFuncSeparateEXT(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha); } Index: ARBMultisample.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBMultisample.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBMultisample.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBMultisample.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ARBMultisample { public static final int GL_MULTISAMPLE_ARB = 0x809D; public static final int GL_SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E; @@ -42,7 +44,7 @@ public static final int GL_SAMPLE_COVERAGE_INVERT_ARB = 0x80AB; public static final int GL_MULTISAMPLE_BIT_ARB = 0x20000000; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glSampleCoverageARB(float value, boolean invert); } Index: EXTMultiDrawArrays.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTMultiDrawArrays.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- EXTMultiDrawArrays.java 3 Jul 2004 21:12:27 -0000 1.5 +++ EXTMultiDrawArrays.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,8 +33,10 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class EXTMultiDrawArrays { - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glMultiDrawArraysEXT(int mode, IntBuffer piFirst, IntBuffer piCount) { if (piFirst.remaining() != piCount.remaining()) { Index: NVHalfFloat.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVHalfFloat.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVHalfFloat.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVHalfFloat.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,6 +33,8 @@ import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class NVHalfFloat { /* @@ -44,7 +46,7 @@ */ public static final int GL_HALF_FLOAT_NV = 0x140B; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glVertex2hNV(short x, short y); Index: NVOcclusionQuery.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVOcclusionQuery.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVOcclusionQuery.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVOcclusionQuery.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,6 +33,8 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class NVOcclusionQuery { public static final int GL_OCCLUSION_TEST_HP = 0x8165; public static final int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; @@ -42,7 +44,7 @@ public static final int GL_PIXEL_COUNT_NV = 0x8866; public static final int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glGenOcclusionQueriesNV(IntBuffer piIDs) { nglGenOcclusionQueriesNV(piIDs.remaining(), piIDs, piIDs.position()); Index: ATIVertexAttribArrayObject.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIVertexAttribArrayObject.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ATIVertexAttribArrayObject.java 3 Jul 2004 21:12:27 -0000 1.5 +++ ATIVertexAttribArrayObject.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -34,9 +34,11 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ATIVertexAttribArrayObject { - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glVertexAttribArrayObjectATI(int index, int size, int type, boolean normalized, int stride, int buffer, Index: ATIDrawBuffers.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIDrawBuffers.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ATIDrawBuffers.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ATIDrawBuffers.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -33,6 +33,8 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class ATIDrawBuffers { /* @@ -58,7 +60,7 @@ public static final int GL_DRAW_BUFFER15_ATI = 0x8834; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glDrawBuffersATI(IntBuffer buffers) { Index: ATIMapObjectBuffer.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIMapObjectBuffer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ATIMapObjectBuffer.java 3 Jul 2004 21:12:27 -0000 1.4 +++ ATIMapObjectBuffer.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -33,9 +33,11 @@ import java.nio.ByteBuffer; +import org.lwjgl.LWJGLException; + public final class ATIMapObjectBuffer { - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; /** * glMapObjectBufferATI maps a gl object buffer to a ByteBuffer. The oldBuffer argument can be Index: NVPointSprite.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVPointSprite.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVPointSprite.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVPointSprite.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,12 +33,14 @@ import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class NVPointSprite { public static final int GL_POINT_SPRITE_NV = 0x8861; public static final int GL_COORD_REPLACE_NV = 0x8862; public static final int GL_POINT_SPRITE_R_MODE_NV = 0x8863; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glPointParameteriNV(int pname, int param); Index: NVFragmentProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVFragmentProgram.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- NVFragmentProgram.java 3 Jul 2004 21:12:27 -0000 1.8 +++ NVFragmentProgram.java 4 Jul 2004 13:14:05 -0000 1.9 @@ -34,6 +34,8 @@ import java.nio.ByteBuffer; import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class NVFragmentProgram extends NVProgram { /* @@ -55,7 +57,7 @@ public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873; public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- Index: NVPixelDataRange.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVPixelDataRange.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NVPixelDataRange.java 3 Jul 2004 21:12:27 -0000 1.4 +++ NVPixelDataRange.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class NVPixelDataRange { /* @@ -60,7 +62,7 @@ public static final int GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C; public static final int GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glPixelDataRangeNV(int target, ByteBuffer data) { Index: ATIVertexStreams.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIVertexStreams.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ATIVertexStreams.java 3 Jul 2004 21:12:27 -0000 1.4 +++ ATIVertexStreams.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ATIVertexStreams { public static final int GL_MAX_VERTEX_STREAMS_ATI = 0x876B; public static final int GL_VERTEX_SOURCE_ATI = 0x876C; @@ -43,7 +45,7 @@ public static final int GL_VERTEX_STREAM6_ATI = 0x8773; public static final int GL_VERTEX_STREAM7_ATI = 0x8774; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glVertexStream1fATI(int stream, float x); public static native void glVertexStream1iATI(int stream, int x); Index: GL11.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL11.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- GL11.java 3 Jul 2004 21:12:27 -0000 1.15 +++ GL11.java 4 Jul 2004 13:14:05 -0000 1.16 @@ -40,6 +40,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + /** * $Id$ * @@ -720,7 +722,7 @@ public static final int GL_LOGIC_OP = GL_INDEX_LOGIC_OP; public static final int GL_TEXTURE_COMPONENTS = GL_TEXTURE_INTERNAL_FORMAT; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glAccum(int op, float value); public static native void glAlphaFunc(int func, float ref); Index: NVRegisterCombiners2.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVRegisterCombiners2.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NVRegisterCombiners2.java 3 Jul 2004 21:12:27 -0000 1.5 +++ NVRegisterCombiners2.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,11 +33,13 @@ import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class NVRegisterCombiners2 { public static final int GL_PER_STAGE_CONSTANTS_NV = 0x8535; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glCombinerStageParameterNV(int stage, int pname, FloatBuffer pfParams) { BufferChecks.checkBuffer(pfParams); Index: ARBWindowPos.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBWindowPos.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ARBWindowPos.java 3 Jul 2004 21:12:27 -0000 1.4 +++ ARBWindowPos.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,8 +31,10 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ARBWindowPos { - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glWindowPos2fARB(float x, float y); Index: EXTPointParameters.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTPointParameters.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- EXTPointParameters.java 3 Jul 2004 21:12:27 -0000 1.5 +++ EXTPointParameters.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -33,13 +33,15 @@ import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class EXTPointParameters { public static final int GL_POINT_SIZE_MIN_EXT = 0x8126; public static final int GL_POINT_SIZE_MAX_EXT = 0x8127; public static final int GL_POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128; public static final int GL_DISTANCE_ATTENUATION_EXT = 0x8129; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glPointParameterfEXT(int pname, float param); Index: NVEvaluators.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVEvaluators.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- NVEvaluators.java 3 Jul 2004 21:12:27 -0000 1.6 +++ NVEvaluators.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -35,6 +35,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public final class NVEvaluators { public static final int GL_EVAL_2D_NV = 0x86C0; public static final int GL_EVAL_TRIANGULAR_2D_NV = 0x86C1; @@ -61,7 +63,7 @@ public static final int GL_MAX_MAP_TESSELLATION_NV = 0x86D6; public static final int GL_MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glGetMapControlPointsNV(int target, int index, int type, int ustride, int vstride, boolean packed, FloatBuffer pPoints) { // TODO:Check buffer size Index: EXTFogCoord.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTFogCoord.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- EXTFogCoord.java 3 Jul 2004 21:12:27 -0000 1.6 +++ EXTFogCoord.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -34,6 +34,7 @@ import java.nio.Buffer; import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; public final class EXTFogCoord { public static final int GL_FOG_COORDINATE_SOURCE_EXT = 0x8450; @@ -46,7 +47,7 @@ public static final int GL_FOG_COORDINATE_ARRAY_EXT = 0x8457; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glFogCoordfEXT(float coord); public static void glFogCoordPointerEXT(int stride, FloatBuffer data) { Index: EXTDrawRangeElements.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTDrawRangeElements.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- EXTDrawRangeElements.java 3 Jul 2004 21:12:27 -0000 1.6 +++ EXTDrawRangeElements.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -36,12 +36,13 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; public final class EXTDrawRangeElements { public static final int GL_MAX_ELEMENTS_VERTICES_EXT = 0x80E8; public static final int GL_MAX_ELEMENTS_INDICES_EXT = 0x80E9; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glDrawRangeElementsEXT(int mode, int start, int end, ByteBuffer pIndices) { BufferChecks.ensureElementVBOdisabled(); Index: ARBMultitexture.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBMultitexture.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBMultitexture.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBMultitexture.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class ARBMultitexture { public static final int GL_TEXTURE0_ARB = 0x84C0; public static final int GL_TEXTURE1_ARB = 0x84C1; @@ -68,7 +70,7 @@ public static final int GL_CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1; public static final int GL_MAX_TEXTURE_UNITS_ARB = 0x84E2; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glClientActiveTextureARB(int texture); Index: NVVertexArrayRange.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVVertexArrayRange.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NVVertexArrayRange.java 3 Jul 2004 21:12:27 -0000 1.4 +++ NVVertexArrayRange.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -34,6 +34,8 @@ import java.nio.Buffer; import java.nio.ByteBuffer; +import org.lwjgl.LWJGLException; + public final class NVVertexArrayRange { public static final int GL_VERTEX_ARRAY_RANGE_NV = 0x851D; public static final int GL_VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E; @@ -41,7 +43,7 @@ public static final int GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520; public static final int GL_VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glVertexArrayRangeNV(ByteBuffer pPointer) { nglVertexArrayRangeNV(pPointer.remaining(), pPointer, pPointer.position()); Index: EXTDepthBoundsTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTDepthBoundsTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- EXTDepthBoundsTest.java 3 Jul 2004 21:12:27 -0000 1.3 +++ EXTDepthBoundsTest.java 4 Jul 2004 13:14:05 -0000 1.4 @@ -31,6 +31,8 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class EXTDepthBoundsTest { /* @@ -46,7 +48,7 @@ */ public static final int DEPTH_BOUNDS_EXT = 0x8891; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glDepthBoundsEXT(float zmin, float zmax); Index: NVVertexProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVVertexProgram.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- NVVertexProgram.java 3 Jul 2004 21:12:27 -0000 1.9 +++ NVVertexProgram.java 4 Jul 2004 13:14:05 -0000 1.10 @@ -38,6 +38,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class NVVertexProgram extends NVProgram { /* @@ -271,7 +273,7 @@ public static final int GL_MAP2_VERTEX_ATTRIB15_4_NV = 0x867F; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- Index: EXTStencilTwoSide.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTStencilTwoSide.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- EXTStencilTwoSide.java 3 Jul 2004 21:12:27 -0000 1.4 +++ EXTStencilTwoSide.java 4 Jul 2004 13:14:05 -0000 1.5 @@ -31,11 +31,13 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class EXTStencilTwoSide { public static final int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910; public static final int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glActiveStencilFaceEXT(int face); } Index: ARBProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBProgram.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ARBProgram.java 3 Jul 2004 21:12:27 -0000 1.8 +++ ARBProgram.java 4 Jul 2004 13:14:05 -0000 1.9 @@ -38,6 +38,8 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.LWJGLException; + public class ARBProgram { /* @@ -129,7 +131,7 @@ public static final int GL_MATRIX31_ARB = 0x88DF; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; // --------------------------- public static void glProgramStringARB(int target, int format, ByteBuffer string) { Index: ATIElementArray.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIElementArray.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ATIElementArray.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ATIElementArray.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -36,13 +36,14 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; public final class ATIElementArray { public static final int GL_ELEMENT_ARRAY_ATI = 0x8768; public static final int GL_ELEMENT_ARRAY_TYPE_ATI = 0x8769; public static final int GL_ELEMENT_ARRAY_POINTER_ATI = 0x876A; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static void glElementPointerATI(ByteBuffer pPointer) { BufferChecks.ensureArrayVBOdisabled(); Index: ARBPointParameters.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ARBPointParameters.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ARBPointParameters.java 3 Jul 2004 21:12:27 -0000 1.6 +++ ARBPointParameters.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -33,13 +33,15 @@ import java.nio.FloatBuffer; +import org.lwjgl.LWJGLException; + public final class ARBPointParameters { public static final int GL_POINT_SIZE_MIN_ARB = 0x8126; public static final int GL_POINT_SIZE_MAX_ARB = 0x8127; public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128; public static final int GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glPointParameterfARB(int pname, float param); Index: EXTCompiledVertexArray.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/EXTCompiledVertexArray.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- EXTCompiledVertexArray.java 3 Jul 2004 21:12:27 -0000 1.5 +++ EXTCompiledVertexArray.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -31,11 +31,13 @@ */ package org.lwjgl.opengl; +import org.lwjgl.LWJGLException; + public final class EXTCompiledVertexArray { public static final int GL_ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8; public static final int GL_ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static native void glLockArraysEXT(int first, int count); public static native void glUnlockArraysEXT(); Index: ATIVertexArrayObject.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/ATIVertexArrayObject.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ATIVertexArrayObject.java 3 Jul 2004 21:12:27 -0000 1.5 +++ ATIVertexArrayObject.java 4 Jul 2004 13:14:05 -0000 1.6 @@ -37,6 +37,8 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; +import org.lwjgl.LWJGLException; + public final class ATIVertexArrayObject { public static final int GL_STATIC_ATI = 0x8760; public static final int GL_DYNAMIC_ATI = 0x8761; @@ -47,7 +49,7 @@ public static final int GL_ARRAY_OBJECT_BUFFER_ATI = 0x8766; public static final int GL_ARRAY_OBJECT_OFFSET_ATI = 0x8767; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; public static int glNewObjectBufferATI(int size, ByteBuffer pPointer, int usage) { return nglNewObjectBufferATI(size, pPointer, pPointer != null ? pPointer.position() : 0, usage); |
|
From: Elias N. <eli...@us...> - 2004-07-04 13:14:30
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25188/src/java/org/lwjgl/openal Modified Files: AL.java AL10.java ALC.java Log Message: all initNativeStub() methods throws LWJGLException Index: AL10.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL10.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- AL10.java 4 Jul 2004 09:13:10 -0000 1.6 +++ AL10.java 4 Jul 2004 13:14:05 -0000 1.7 @@ -36,6 +36,9 @@ import java.nio.ShortBuffer; import java.nio.IntBuffer; import java.nio.FloatBuffer; + +import org.lwjgl.LWJGLException; + /** * $Id$ * <br> @@ -357,7 +360,7 @@ /** Distance model */ public static final int AL_INVERSE_DISTANCE_CLAMPED = 0xD002; - static native void initNativeStubs(); + static native void initNativeStubs() throws LWJGLException; /** * The application can temporarily disable certain AL capabilities on a per Context Index: ALC.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- ALC.java 4 Jul 2004 09:13:10 -0000 1.19 +++ ALC.java 4 Jul 2004 13:14:05 -0000 1.20 @@ -170,7 +170,7 @@ created = true; } - private static native void initNativeStubs(); + private static native void initNativeStubs() throws LWJGLException; /** * Calls whatever destruction rutines that are needed Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- AL.java 4 Jul 2004 09:13:09 -0000 1.26 +++ AL.java 4 Jul 2004 13:14:05 -0000 1.27 @@ -182,9 +182,7 @@ if (contextFrequency == -1) { context = ALC.alcCreateContext(device.device, null); } else { - context = - ALC.alcCreateContext( - device.device, + context = ALC.alcCreateContext(device.device, ALCcontext.createAttributeList(contextFrequency, contextRefresh, contextSynchronized)); } @@ -215,7 +213,7 @@ contextSynchronized = ALC.ALC_FALSE; created = false; - nDestroy(); + nDestroy(); } /** |
|
From: Elias N. <eli...@us...> - 2004-07-04 13:14:30
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25188/src/native/common Modified Files: common_tools.cpp common_tools.h Log Message: all initNativeStub() methods throws LWJGLException Index: common_tools.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- common_tools.cpp 4 Jul 2004 09:13:12 -0000 1.25 +++ common_tools.cpp 4 Jul 2004 13:14:06 -0000 1.26 @@ -153,10 +153,10 @@ return true; } -bool ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions) { +void ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions) { if (clazz == NULL) { throwException(env, "Null class"); - return false; + return; } JNINativeMethod *methods = (JNINativeMethod *)malloc(num_functions*sizeof(JNINativeMethod)); for (int i = 0; i < num_functions; i++) { @@ -166,7 +166,7 @@ if (ext_func_pointer == NULL) { free(methods); throwException(env, "Missing driver symbols"); - return false; + return; } void **ext_function_pointer_pointer = function->ext_function_pointer; *ext_function_pointer_pointer = ext_func_pointer; @@ -178,10 +178,6 @@ } jint result = env->RegisterNatives(clazz, methods, num_functions); free(methods); - if (result != 0) { - return false; - } else - return true; } bool getBooleanProperty(JNIEnv *env, const char* propertyName) { Index: common_tools.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- common_tools.h 4 Jul 2004 09:13:12 -0000 1.19 +++ common_tools.h 4 Jul 2004 13:14:06 -0000 1.20 @@ -114,7 +114,7 @@ #define NUMFUNCTIONS(x) (sizeof(x)/sizeof(JavaMethodAndExtFunction)); -extern bool ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions); +extern void ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions); extern bool ext_InitializeFunctions(ExtGetProcAddressPROC gpa, int num_functions, ExtFunction *functions); #endif |
|
From: Elias N. <eli...@us...> - 2004-07-04 09:13:51
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16809/src/java/org/lwjgl/openal Modified Files: AL.java AL10.java ALC.java Log Message: Moved openal native stub loading to java Index: AL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- AL.java 12 Jun 2004 20:28:22 -0000 1.25 +++ AL.java 4 Jul 2004 09:13:09 -0000 1.26 @@ -170,6 +170,7 @@ oalPaths[oalPaths.length - 1] = ""; nCreate(oalPaths); + AL10.initNativeStubs(); ALC.create(); device = ALC.alcOpenDevice(deviceArguments); Index: AL10.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/AL10.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- AL10.java 12 Jun 2004 20:28:22 -0000 1.5 +++ AL10.java 4 Jul 2004 09:13:10 -0000 1.6 @@ -357,6 +357,8 @@ /** Distance model */ public static final int AL_INVERSE_DISTANCE_CLAMPED = 0xD002; + static native void initNativeStubs(); + /** * The application can temporarily disable certain AL capabilities on a per Context * basis. This allows the driver implementation to optimize for certain subsets of Index: ALC.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/ALC.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- ALC.java 12 Jun 2004 20:28:22 -0000 1.18 +++ ALC.java 4 Jul 2004 09:13:10 -0000 1.19 @@ -165,11 +165,13 @@ if (created) { return; } - + initNativeStubs(); init(); created = true; } + private static native void initNativeStubs(); + /** * Calls whatever destruction rutines that are needed */ |
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16809/src/native/common Modified Files: common_tools.cpp common_tools.h extal.cpp extal.h extgl.cpp extgl.h org_lwjgl_openal_AL10.cpp org_lwjgl_openal_ALC.cpp Log Message: Moved openal native stub loading to java Index: org_lwjgl_openal_ALC.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_ALC.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- org_lwjgl_openal_ALC.cpp 12 Jun 2004 20:28:29 -0000 1.15 +++ org_lwjgl_openal_ALC.cpp 4 Jul 2004 09:13:18 -0000 1.16 @@ -352,7 +352,8 @@ * * @return true if all methods were loaded, false if one of the methods could not be loaded */ -bool LoadALC(JNIEnv *env) { +extern "C" { +JNIEXPORT void JNICALL Java_org_lwjgl_openal_ALC_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"nalcGetString", "(II)Ljava/lang/String;", (void*)&Java_org_lwjgl_openal_ALC_nalcGetString, "alcGetString", (void**)&alcGetString}, {"nalcGetIntegerv", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_openal_ALC_nalcGetIntegerv, "alcGetIntegerv", (void**)&alcGetIntegerv}, @@ -370,6 +371,6 @@ {"nalcGetEnumValue", "(ILjava/lang/String;)I", (void*)&Java_org_lwjgl_openal_ALC_nalcGetEnumValue, "alcGetEnumValue", (void**)&alcGetEnumValue} }; int num_functions = NUMFUNCTIONS(functions); - jclass clazz = ext_ResetClass(env, "org/lwjgl/openal/ALC"); - return extal_InitializeClass(env, clazz, NULL, NULL, num_functions, functions); + extal_InitializeClass(env, clazz, num_functions, functions); +} } Index: extal.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extal.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- extal.cpp 12 Jun 2004 20:28:29 -0000 1.21 +++ extal.cpp 4 Jul 2004 09:13:17 -0000 1.22 @@ -76,12 +76,6 @@ /* Unloads OpenAL */ static void UnLoadOpenAL(void); -/* Loads OpenAL basic functions */ -extern bool LoadAL(JNIEnv *env); - -/* Loads OpenAL ALC functions */ -extern bool LoadALC(JNIEnv *env); - static void *NativeGetFunctionPointer(const char *function) { #ifdef _WIN32 return GetProcAddress(handleOAL, function); @@ -235,19 +229,6 @@ throwException(env, "Could not load alGetProcAddress function pointer."); return; } - //load basic OpenAL functions - if(!LoadAL(env)) { - DeInitializeOpenAL(); - throwException(env, "Could not load OpenAL function pointers."); - return; - } - - //load OpenAL context functions - if(!LoadALC(env)) { - DeInitializeOpenAL(); - throwException(env, "Could not load ALC function pointers."); - return; - } } /** @@ -258,7 +239,7 @@ handleOAL = 0; } -bool extal_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, int num_functions, JavaMethodAndExtFunction *functions) { - return ext_InitializeClass(env, clazz, ext_set, ext_name, &extal_GetProcAddress, num_functions, functions); +void extal_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions) { + ext_InitializeClass(env, clazz, &extal_GetProcAddress, num_functions, functions); } Index: extgl.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extgl.h,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- extgl.h 3 Jul 2004 21:12:29 -0000 1.41 +++ extgl.h 4 Jul 2004 09:13:17 -0000 1.42 @@ -438,9 +438,9 @@ extern bool extgl_InitAGL(JNIEnv *env); #endif extern void extgl_Close(void); -extern bool extgl_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions); +extern void extgl_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions); extern bool extgl_InitializeFunctions(int num_functions, ExtFunction *functions); -extern bool extgl_QueryExtension(JNIEnv *env, jobject ext_set, const GLubyte*extensions, const char *name); +extern bool extgl_QueryExtension(JNIEnv *env, const GLubyte*extensions, const char *name); #ifdef __cplusplus } Index: extgl.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extgl.cpp,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- extgl.cpp 3 Jul 2004 21:12:29 -0000 1.40 +++ extgl.cpp 4 Jul 2004 09:13:17 -0000 1.41 @@ -149,18 +149,14 @@ #endif } -bool extgl_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions) { - return ext_InitializeClass(env, clazz, NULL, NULL, &extgl_GetProcAddress, num_functions, functions); +void extgl_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions) { + ext_InitializeClass(env, clazz, &extgl_GetProcAddress, num_functions, functions); } bool extgl_InitializeFunctions(int num_functions, ExtFunction *functions) { return ext_InitializeFunctions(&extgl_GetProcAddress, num_functions, functions); } -static void insertExtension(JNIEnv *env, jobject ext_set, const char *ext) { - doExtension(env, ext_set, "add", ext); -} - #ifdef _AGL // ------------------------- static CFBundleRef loadBundle(const Str255 frameworkName) @@ -232,7 +228,7 @@ #endif -bool extgl_QueryExtension(JNIEnv *env, jobject ext_set, const GLubyte*extensions, const char *name) +bool extgl_QueryExtension(JNIEnv *env, const GLubyte*extensions, const char *name) { const GLubyte *start; GLubyte *where, *terminator; @@ -259,9 +255,6 @@ terminator = where + strlen(name); if (where == start || *(where - 1) == ' ') if (*terminator == ' ' || *terminator == '\0') { - if (ext_set != NULL) { - insertExtension(env, ext_set, name); - } return true; } start = terminator; @@ -319,12 +312,6 @@ /* AGL stuff END*/ /*-----------------------------------------------------*/ -/** returns true if the extention is available */ -static bool GLQueryExtension(JNIEnv *env, jobject ext_set, const char *name) -{ - return extgl_QueryExtension(env, ext_set, glGetString(GL_EXTENSIONS), name); -} - #ifdef _AGL bool extgl_Open(void) { if (opengl_bundle_ref != NULL) Index: common_tools.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- common_tools.cpp 3 Jul 2004 21:12:28 -0000 1.24 +++ common_tools.cpp 4 Jul 2004 09:13:12 -0000 1.25 @@ -139,33 +139,6 @@ throwGeneralException(env, "org/lwjgl/LWJGLException", err); } -void doExtension(JNIEnv *env, jobject ext_set, const char *method_name, const char *ext) { - jclass clazz = env->GetObjectClass(ext_set); - jmethodID id = env->GetMethodID(clazz, method_name, "(Ljava/lang/Object;)Z"); - if (id == NULL) - return; - jstring ext_string = env->NewStringUTF(ext); - if (ext_string == NULL) { - printfDebug("Could not allocate java string from %s\n", ext); - return; - } - env->CallBooleanMethod(ext_set, id, ext_string); -} - -static void ext_removeExtension(JNIEnv *env, jobject ext_set, const char *ext) { - doExtension(env, ext_set, "remove", ext); -} - -jclass ext_ResetClass(JNIEnv *env, const char *class_name) { - jclass clazz = env->FindClass(class_name); - if (clazz == NULL) - return NULL; - jint result = env->UnregisterNatives(clazz); - if (result != 0) - printfDebug("Could not unregister natives for class %s\n", class_name); - return clazz; -} - bool ext_InitializeFunctions(ExtGetProcAddressPROC gpa, int num_functions, ExtFunction *functions) { for (int i = 0; i < num_functions; i++) { ExtFunction *function = functions + i; @@ -180,20 +153,17 @@ return true; } -bool ext_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions) { - if (clazz == NULL) +bool ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions) { + if (clazz == NULL) { + throwException(env, "Null class"); return false; + } JNINativeMethod *methods = (JNINativeMethod *)malloc(num_functions*sizeof(JNINativeMethod)); for (int i = 0; i < num_functions; i++) { JavaMethodAndExtFunction *function = functions + i; if (function->ext_function_name != NULL) { void *ext_func_pointer = gpa(function->ext_function_name); if (ext_func_pointer == NULL) { - if (ext_name != NULL) { - printfDebug("NOTICE: %s disabled because of missing driver symbols\n", ext_name); - if (ext_set != NULL) - ext_removeExtension(env, ext_set, ext_name); - } free(methods); throwException(env, "Missing driver symbols"); return false; @@ -209,8 +179,6 @@ jint result = env->RegisterNatives(clazz, methods, num_functions); free(methods); if (result != 0) { - if (ext_name != NULL) - printfDebug("Could not register natives for extension %s\n", ext_name); return false; } else return true; Index: common_tools.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/common_tools.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- common_tools.h 2 Jul 2004 19:01:57 -0000 1.18 +++ common_tools.h 4 Jul 2004 09:13:12 -0000 1.19 @@ -114,9 +114,7 @@ #define NUMFUNCTIONS(x) (sizeof(x)/sizeof(JavaMethodAndExtFunction)); -extern void doExtension(JNIEnv *env, jobject ext_set, const char *method_name, const char *ext); -extern jclass ext_ResetClass(JNIEnv *env, const char *class_name); -extern bool ext_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions); +extern bool ext_InitializeClass(JNIEnv *env, jclass clazz, ExtGetProcAddressPROC gpa, int num_functions, JavaMethodAndExtFunction *functions); extern bool ext_InitializeFunctions(ExtGetProcAddressPROC gpa, int num_functions, ExtFunction *functions); #endif Index: org_lwjgl_openal_AL10.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_openal_AL10.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- org_lwjgl_openal_AL10.cpp 12 Jun 2004 20:28:29 -0000 1.7 +++ org_lwjgl_openal_AL10.cpp 4 Jul 2004 09:13:18 -0000 1.8 @@ -733,7 +733,8 @@ * * @return true if all methods were loaded, false if one of the methods could not be loaded */ -bool LoadAL(JNIEnv *env) { +extern "C" { +JNIEXPORT void JNICALL Java_org_lwjgl_openal_AL10_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"alEnable", "(I)V", (void*)&Java_org_lwjgl_openal_AL10_alEnable, "alEnable", (void**)&alEnable}, {"alDisable", "(I)V", (void*)&Java_org_lwjgl_openal_AL10_alDisable, "alDisable", (void**)&alDisable}, @@ -786,6 +787,6 @@ {"alDopplerVelocity", "(F)V", (void*)&Java_org_lwjgl_openal_AL10_alDopplerVelocity, "alDopplerVelocity", (void**)&alDopplerVelocity} }; int num_functions = NUMFUNCTIONS(functions); - jclass clazz = ext_ResetClass(env, "org/lwjgl/openal/AL10"); - return extal_InitializeClass(env, clazz, NULL, NULL, num_functions, functions); + extal_InitializeClass(env, clazz, num_functions, functions); +} } Index: extal.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/extal.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- extal.h 12 Jun 2004 20:28:29 -0000 1.26 +++ extal.h 4 Jul 2004 09:13:17 -0000 1.27 @@ -53,7 +53,7 @@ #include <jni.h> #include "common_tools.h" -bool extal_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, int num_functions, JavaMethodAndExtFunction *functions); +void extal_InitializeClass(JNIEnv *env, jclass clazz, int num_functions, JavaMethodAndExtFunction *functions); #ifdef __cplusplus extern "C" { |
|
From: Elias N. <eli...@us...> - 2004-07-04 09:13:35
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16809/src/native/win32 Modified Files: extgl_wgl.cpp Log Message: Moved openal native stub loading to java Index: extgl_wgl.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/extgl_wgl.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- extgl_wgl.cpp 3 Jul 2004 14:39:29 -0000 1.1 +++ extgl_wgl.cpp 4 Jul 2004 09:13:19 -0000 1.2 @@ -89,7 +89,7 @@ extensions = (GLubyte*)wglGetExtensionsStringEXT(); else extensions = (GLubyte*)wglGetExtensionsStringARB(wglGetCurrentDC()); - return extgl_QueryExtension(env, NULL, extensions, name); + return extgl_QueryExtension(env, extensions, name); } static void extgl_InitWGLARBPbuffer(JNIEnv *env) @@ -172,4 +172,4 @@ extgl_InitWGLARBPixelFormat(env); extgl_InitWGLARBPbuffer(env); //extgl_InitWGLARBBufferRegion(env); -} \ No newline at end of file +} |
|
From: Elias N. <eli...@us...> - 2004-07-04 09:13:35
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16809/src/native/linux Modified Files: extgl_glx.cpp Log Message: Moved openal native stub loading to java Index: extgl_glx.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/extgl_glx.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- extgl_glx.cpp 12 Jun 2004 20:28:32 -0000 1.2 +++ extgl_glx.cpp 4 Jul 2004 09:13:19 -0000 1.3 @@ -77,7 +77,7 @@ static bool GLXQueryExtension(JNIEnv* env, Display *disp, int screen, const char *name) { const GLubyte *exts = (const GLubyte *)glXQueryExtensionsString(disp, screen); - return extgl_QueryExtension(env, NULL, exts, name); + return extgl_QueryExtension(env, exts, name); } static void extgl_InitGLX13(JNIEnv *env) |
|
From: Elias N. <eli...@us...> - 2004-07-04 08:39:22
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12335/src/native/win32 Modified Files: org_lwjgl_opengl_Display.cpp org_lwjgl_opengl_Pbuffer.cpp Log Message: Make sure the GL11 native stubs are unloaded too. Throw exception when wglMakeCurrent fails Index: org_lwjgl_opengl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Display.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- org_lwjgl_opengl_Display.cpp 3 Jul 2004 17:06:56 -0000 1.10 +++ org_lwjgl_opengl_Display.cpp 4 Jul 2004 08:39:09 -0000 1.11 @@ -561,7 +561,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Display_nMakeCurrent (JNIEnv *env, jclass clazz) { - wglMakeCurrent(hdc, hglrc); + BOOL result = wglMakeCurrent(hdc, hglrc); + if (!result) + throwException(env, "Could not make display context current"); } /* Index: org_lwjgl_opengl_Pbuffer.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_Pbuffer.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- org_lwjgl_opengl_Pbuffer.cpp 3 Jul 2004 14:39:29 -0000 1.11 +++ org_lwjgl_opengl_Pbuffer.cpp 4 Jul 2004 08:39:09 -0000 1.12 @@ -174,7 +174,8 @@ (JNIEnv *env, jclass clazz, jint handle) { PbufferInfo *Pbuffer_info = (PbufferInfo *)handle; - wglMakeCurrent(Pbuffer_info->Pbuffer_dc, Pbuffer_info->Pbuffer_context); + if (!wglMakeCurrent(Pbuffer_info->Pbuffer_dc, Pbuffer_info->Pbuffer_context)) + throwException(env, "Could not make pbuffer context current"); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Pbuffer_nDestroy |
|
From: Elias N. <eli...@us...> - 2004-07-04 08:39:22
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12335/src/java/org/lwjgl/opengl Modified Files: GLContext.java Log Message: Make sure the GL11 native stubs are unloaded too. Throw exception when wglMakeCurrent fails Index: GLContext.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLContext.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- GLContext.java 3 Jul 2004 21:12:27 -0000 1.14 +++ GLContext.java 4 Jul 2004 08:39:09 -0000 1.15 @@ -330,8 +330,11 @@ private static void unloadStubs() { Iterator exts_it = exts.keySet().iterator(); - while (exts_it.hasNext()) - resetNativeStubs((Class)exts_it.next()); + while (exts_it.hasNext()) { + Class ext_class = (Class)exts_it.next(); + resetNativeStubs(ext_class); + } + resetNativeStubs(org.lwjgl.opengl.GL11.class); } /** |