|
From: <eli...@pr...> - 2004-01-31 01:24:02
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/arb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3287/src/java/org/lwjgl/opengl/arb Modified Files: ARBVertexProgram.java Log Message: Split extgl functions into separate cpp files. Added some extensions Index: ARBVertexProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/arb/ARBVertexProgram.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ARBVertexProgram.java 20 Jan 2004 11:19:12 -0000 1.7 +++ ARBVertexProgram.java 29 Jan 2004 22:07:02 -0000 1.8 @@ -114,176 +114,6 @@ public static native void glVertexAttrib4NubARB(int index, byte x, byte y, byte z, byte w); - // --------------------------- - public static void glVertexAttrib1ARB(int index, ShortBuffer values) { - nglVertexAttrib1svARB(index, values, values.position()); - } - - private static native void nglVertexAttrib1svARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib1ARB(int index, FloatBuffer values) { - nglVertexAttrib1fvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib1fvARB(int index, FloatBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib2ARB(int index, ShortBuffer values) { - assert values.remaining() >= 2: "<values> must have 2 shorts available."; - nglVertexAttrib2svARB(index, values, values.position()); - } - - private static native void nglVertexAttrib2svARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib2ARB(int index, FloatBuffer values) { - assert values.remaining() >= 2: "<values> must have 2 floats available."; - nglVertexAttrib2fvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib2fvARB(int index, FloatBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib3ARB(int index, ShortBuffer values) { - assert values.remaining() >= 3: "<values> must have 3 shorts available."; - nglVertexAttrib3svARB(index, values, values.position()); - } - - private static native void nglVertexAttrib3svARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib3ARB(int index, FloatBuffer values) { - assert values.remaining() >= 3: "<values> must have 3 floats available."; - nglVertexAttrib3fvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib3fvARB(int index, FloatBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4ARB(int index, ByteBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 bytes available."; - nglVertexAttrib4bvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4bvARB(int index, ByteBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4ARB(int index, ShortBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 shorts available."; - nglVertexAttrib4svARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4svARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4ARB(int index, IntBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 ints available."; - nglVertexAttrib4ivARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4ivARB(int index, IntBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4uARB(int index, ByteBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 bytes available."; - nglVertexAttrib4ubvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4ubvARB(int index, ByteBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4uARB(int index, ShortBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 shorts available."; - nglVertexAttrib4usvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4usvARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4uARB(int index, IntBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 ints available."; - nglVertexAttrib4uivARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4uivARB(int index, IntBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4ARB(int index, FloatBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 floats available."; - nglVertexAttrib4fvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4fvARB(int index, FloatBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NARB(int index, ByteBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 bytes available."; - nglVertexAttrib4NbvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NbvARB(int index, ByteBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NARB(int index, ShortBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 shorts available."; - nglVertexAttrib4NsvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NsvARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NARB(int index, IntBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 ints available."; - nglVertexAttrib4NivARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NivARB(int index, IntBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NuARB(int index, ByteBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 bytes available."; - nglVertexAttrib4NubvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NubvARB(int index, ByteBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NuARB(int index, ShortBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 shorts available."; - nglVertexAttrib4NusvARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NusvARB(int index, ShortBuffer values, int valuesOffset); - // --------------------------- - - // --------------------------- - public static void glVertexAttrib4NuARB(int index, IntBuffer values) { - assert values.remaining() >= 4: "<values> must have 4 ints available."; - nglVertexAttrib4NuivARB(index, values, values.position()); - } - - private static native void nglVertexAttrib4NuivARB(int index, IntBuffer values, int valuesOffset); - // --------------------------- - - public static void glVertexAttribPointerARB(int index, int size, boolean unsigned, boolean normalized, int stride, ByteBuffer buffer) { assert VBOTracker.getVBOArrayStack().getState() == 0: "Cannot use Buffers when VBO is enabled"; nglVertexAttribPointerARB(index, size, unsigned ? GL11.GL_UNSIGNED_BYTE : GL11.GL_BYTE, normalized, stride, buffer, buffer.position()); |