Move native stub initialization from extgl into GLContext.java. Makes it much easier to

exlude extensions classes. Furthermore, GLContext.useContext(null) can now be used to
reset the native stubs when no context is current.
This commit is contained in:
Elias Naur 2004-07-03 21:12:33 +00:00
parent 2cc7e0d02f
commit 15934fd6e7
122 changed files with 842 additions and 1033 deletions

View file

@ -94,6 +94,8 @@ public final class ARBVertexShader {
public static final int GL_FLOAT_MAT3_ARB = 0x8B5B;
public static final int GL_FLOAT_MAT4_ARB = 0x8B5C;
static native void initNativeStubs();
// ---------------------------
public static void glBindAttribLocationARB(int programObj, int index, ByteBuffer name) {
if ( name.get(name.limit() - 1) != 0 ) {