|
From: Elias N. <eli...@us...> - 2006-04-05 11:21:26
|
Update of /cvsroot/java-game-lib/LWJGL/src/generated/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21894/src/generated/org/lwjgl/opengl Modified Files: ContextCapabilities.java GL11.java Log Message: Added glPrioritizeTextures and glAreTexturesResident Index: GL11.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/generated/org/lwjgl/opengl/GL11.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GL11.java 26 Feb 2006 11:44:33 -0000 1.5 +++ GL11.java 5 Apr 2006 11:20:31 -0000 1.6 @@ -636,6 +636,25 @@ } private static native void nglBindTexture(int target, int texture, long function_pointer); + public static void glPrioritizeTextures(IntBuffer textures, FloatBuffer priorities) { + long function_pointer = GLContext.getCapabilities().GL11_glPrioritizeTextures_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(textures); + BufferChecks.checkBuffer(priorities, textures.remaining()); + nglPrioritizeTextures((textures.remaining()), textures, textures.position(), priorities, priorities.position(), function_pointer); + } + private static native void nglPrioritizeTextures(int n, IntBuffer textures, int textures_position, FloatBuffer priorities, int priorities_position, long function_pointer); + + public static boolean glAreTexturesResident(IntBuffer textures, ByteBuffer residences) { + long function_pointer = GLContext.getCapabilities().GL11_glAreTexturesResident_pointer; + BufferChecks.checkFunctionAddress(function_pointer); + BufferChecks.checkDirect(textures); + BufferChecks.checkBuffer(residences, textures.remaining()); + boolean __result = nglAreTexturesResident((textures.remaining()), textures, textures.position(), residences, residences.position(), function_pointer); + return __result; + } + private static native boolean nglAreTexturesResident(int n, IntBuffer textures, int textures_position, ByteBuffer residences, int residences_position, long function_pointer); + public static void glBegin(int mode) { long function_pointer = GLContext.getCapabilities().GL11_glBegin_pointer; BufferChecks.checkFunctionAddress(function_pointer); Index: ContextCapabilities.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- ContextCapabilities.java 6 Feb 2006 11:11:09 -0000 1.6 +++ ContextCapabilities.java 5 Apr 2006 11:20:29 -0000 1.7 @@ -512,6 +512,8 @@ long GL11_glBlendFunc_pointer; long GL11_glBitmap_pointer; long GL11_glBindTexture_pointer; + long GL11_glPrioritizeTextures_pointer; + long GL11_glAreTexturesResident_pointer; long GL11_glBegin_pointer; long GL11_glEnd_pointer; long GL11_glArrayElement_pointer; @@ -1537,6 +1539,8 @@ (GL11_glBlendFunc_pointer = GLContext.getFunctionAddress("glBlendFunc")) != 0 && (GL11_glBitmap_pointer = GLContext.getFunctionAddress("glBitmap")) != 0 && (GL11_glBindTexture_pointer = GLContext.getFunctionAddress("glBindTexture")) != 0 && + (GL11_glPrioritizeTextures_pointer = GLContext.getFunctionAddress("glPrioritizeTextures")) != 0 && + (GL11_glAreTexturesResident_pointer = GLContext.getFunctionAddress("glAreTexturesResident")) != 0 && (GL11_glBegin_pointer = GLContext.getFunctionAddress("glBegin")) != 0 && (GL11_glEnd_pointer = GLContext.getFunctionAddress("glEnd")) != 0 && (GL11_glArrayElement_pointer = GLContext.getFunctionAddress("glArrayElement")) != 0 && |