|
From: <eli...@us...> - 2004-03-07 15:42:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31365/src/java/org/lwjgl/opengl Modified Files: GL11.java NVVertexProgram.java Log Message: Replaced CHECK_EXISTS with one time check at symbol load time Index: GL11.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL11.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- GL11.java 18 Feb 2004 23:54:46 -0000 1.10 +++ GL11.java 7 Mar 2004 15:18:45 -0000 1.11 @@ -1035,6 +1035,12 @@ } private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_offset); + public static void glGetTexGen(int coord, int pname, IntBuffer params) { + BufferChecks.checkBuffer(params); + nglGetTexGeniv(coord, pname, params, params.position()); + } + private static native void nglGetTexGeniv(int coord, int pname, IntBuffer params, int params_offset); + public static void glGetTexGen(int coord, int pname, FloatBuffer params) { BufferChecks.checkBuffer(params); nglGetTexGenfv(coord, pname, params, params.position()); Index: NVVertexProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/NVVertexProgram.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NVVertexProgram.java 18 Feb 2004 23:54:45 -0000 1.4 +++ NVVertexProgram.java 7 Mar 2004 15:18:45 -0000 1.5 @@ -469,4 +469,48 @@ public static native void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w); + public static void glVertexAttribs1NV(int index, int n, ShortBuffer v) { + nglVertexAttribs1svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs1NV(int index, int n, FloatBuffer v) { + nglVertexAttribs1fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs2NV(int index, int n, ShortBuffer v) { + nglVertexAttribs2svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs2NV(int index, int n, FloatBuffer v) { + nglVertexAttribs2fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs3NV(int index, int n, ShortBuffer v) { + nglVertexAttribs3svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs3NV(int index, int n, FloatBuffer v) { + nglVertexAttribs3fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs4NV(int index, int n, ShortBuffer v) { + nglVertexAttribs4svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs4NV(int index, int n, FloatBuffer v) { + nglVertexAttribs4fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs4uNV(int index, int n, ByteBuffer v) { + nglVertexAttribs4ubvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4ubvNV(int index, int n, ByteBuffer v, int v_offset); } |