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
|
From: Caspian Rychlik-P. <ci...@us...> - 2002-11-24 21:21:26
|
Update of /cvsroot/java-game-lib/LWJGL/doc/javadoc/org In directory sc8-pr-cvs1:/tmp/cvs-serv7827/doc/javadoc/org Log Message: Directory /cvsroot/java-game-lib/LWJGL/doc/javadoc/org added to the repository |
From: Elias N. <eli...@us...> - 2002-11-24 19:35:03
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv2445 Modified Files: Keyboard.java Log Message: Removed PRINTSCREEN, PAGEUP and PAGEDOWN again - need to remap instead Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Keyboard.java 24 Nov 2002 14:35:56 -0000 1.12 +++ Keyboard.java 24 Nov 2002 19:35:00 -0000 1.13 @@ -134,12 +134,9 @@ public static final int KEY_DECIMAL = 0x53; /* . on numeric keypad */ public static final int KEY_F11 = 0x57; public static final int KEY_F12 = 0x58; - public static final int KEY_PAGEUP = 0x5B; - public static final int KEY_PAGEDOWN = 0x61; public static final int KEY_F13 = 0x64; /* (NEC PC98) */ public static final int KEY_F14 = 0x65; /* (NEC PC98) */ public static final int KEY_F15 = 0x66; /* (NEC PC98) */ - public static final int KEY_PRINTSCREEN = 0x67; public static final int KEY_KANA = 0x70; /* (Japanese keyboard) */ public static final int KEY_CONVERT = 0x79; /* (Japanese keyboard) */ public static final int KEY_NOCONVERT = 0x7B; /* (Japanese keyboard) */ |
From: Elias N. <eli...@us...> - 2002-11-24 19:14:40
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv22987 Modified Files: org_lwjgl_opengl_CoreGL.cpp Log Message: Added more missing native GL functions Index: org_lwjgl_opengl_CoreGL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_CoreGL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_CoreGL.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_opengl_CoreGL.cpp 24 Nov 2002 14:27:14 -0000 1.2 +++ org_lwjgl_opengl_CoreGL.cpp 24 Nov 2002 19:14:36 -0000 1.3 @@ -459,6 +459,200 @@ /* * Class: org_lwjgl_opengl_CoreGL + * Method: color3bv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3bv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3bv((signed char *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3dv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3dv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3dv((double *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3fv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3fv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3fv((float *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3iv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3iv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3iv((int *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3sv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3sv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3sv((short *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3ubv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3ubv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3ubv((unsigned char *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3uiv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3uiv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3uiv((unsigned int *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color3usv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color3usv + (JNIEnv *env, jobject obj, jint v) +{ + glColor3usv((unsigned short *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4bv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4bv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4bv((signed char *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4dv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4dv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4dv((double *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4fv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4fv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4fv((float *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4iv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4iv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4iv((int *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4sv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4sv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4sv((short *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4ubv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4ubv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4ubv((unsigned char *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: color4uiv + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_color4uiv + (JNIEnv *env, jobject obj, jint v) +{ + glColor4uiv((unsigned int *)v); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL * Method: clipPlane */ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_clipPlane(JNIEnv * env, jobject obj, jint p0, jint p1) |
From: Caspian Rychlik-P. <ci...@us...> - 2002-11-24 17:13:37
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv19756/src/native/win32 Modified Files: org_lwjgl_opengl_BaseGL.cpp Log Message: Fixed compile error since changing to platform independent glext.c Index: org_lwjgl_opengl_BaseGL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_BaseGL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_BaseGL.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_opengl_BaseGL.cpp 17 Aug 2002 14:13:11 -0000 1.3 +++ org_lwjgl_opengl_BaseGL.cpp 24 Nov 2002 17:13:33 -0000 1.4 @@ -126,8 +126,7 @@ printf("Available extensions:\n%s\n", p); } - _wglSetDC(hdc); - if (glInitialize() != 0) { + if (extgl_Initialize() != 0) { printf("Failed to initialize GL\n"); return JNI_FALSE; } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-11-24 17:12:40
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv19348/src/native/win32 Modified Files: org_lwjgl_Display.cpp Log Message: Fixed display frequency problems Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- org_lwjgl_Display.cpp 26 Aug 2002 18:14:22 -0000 1.6 +++ org_lwjgl_Display.cpp 24 Nov 2002 17:12:36 -0000 1.7 @@ -99,7 +99,10 @@ devmode.dmPelsHeight = height; devmode.dmDisplayFlags = 0; devmode.dmDisplayFrequency = freq; - devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFLAGS | DM_DISPLAYFREQUENCY; + devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT | DM_DISPLAYFLAGS; + if (freq != 0) + devmode.dmFields |= DM_DISPLAYFREQUENCY; + LONG cdsret = ChangeDisplaySettings(&devmode, CDS_FULLSCREEN); switch (cdsret) { |
From: Caspian Rychlik-P. <ci...@us...> - 2002-11-24 17:08:40
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv17811/src/java/org/lwjgl/opengl Modified Files: GL.java Log Message: Fixed extension finding code Index: GL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- GL.java 18 Oct 2002 23:21:49 -0000 1.11 +++ GL.java 24 Nov 2002 17:08:34 -0000 1.12 @@ -1561,14 +1561,18 @@ StringTokenizer st = new StringTokenizer(exts); while (st.hasMoreTokens()) { String ext = st.nextToken(); - + if (ext.startsWith("GL_")) + ext = ext.substring(3); Field f = (Field) map.get(ext); if (f != null) { + //System.out.println("Extension : "+ext+" : present"); try { f.setBoolean(this, true); } catch (IllegalAccessException e) { e.printStackTrace(System.err); } +// } else { +// System.out.println("Extension : "+ext+" : NOT AVAILABLE"); } } |
From: Elias N. <eli...@us...> - 2002-11-24 14:36:02
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv28838 Modified Files: Keyboard.java Log Message: Added Keyboard.KEY_PRINTSCREEN Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Keyboard.java 24 Nov 2002 12:01:24 -0000 1.11 +++ Keyboard.java 24 Nov 2002 14:35:56 -0000 1.12 @@ -139,6 +139,7 @@ public static final int KEY_F13 = 0x64; /* (NEC PC98) */ public static final int KEY_F14 = 0x65; /* (NEC PC98) */ public static final int KEY_F15 = 0x66; /* (NEC PC98) */ + public static final int KEY_PRINTSCREEN = 0x67; public static final int KEY_KANA = 0x70; /* (Japanese keyboard) */ public static final int KEY_CONVERT = 0x79; /* (Japanese keyboard) */ public static final int KEY_NOCONVERT = 0x7B; /* (Japanese keyboard) */ |
From: Elias N. <eli...@us...> - 2002-11-24 14:27:18
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv22481 Modified Files: org_lwjgl_opengl_CoreGL.cpp Log Message: Added linux support for additional GL functions Index: org_lwjgl_opengl_CoreGL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_CoreGL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_opengl_CoreGL.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_opengl_CoreGL.cpp 19 Nov 2002 08:50:57 -0000 1.1 +++ org_lwjgl_opengl_CoreGL.cpp 24 Nov 2002 14:27:14 -0000 1.2 @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * @@ -3205,6 +3205,946 @@ (JNIEnv * env, jobject obj, jint target, jint pname, jint params) { glGetColorTableParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: colorTableParameteriv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_colorTableParameteriv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glColorTableParameteriv(target, pname, (int *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: colorTableParameterfv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_colorTableParameterfv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glColorTableParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: copyColorSubTable + * Signature: (IIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_copyColorSubTable + (JNIEnv *env, jobject obj, jint target, jint start, jint x, jint y, jint width) +{ + glCopyColorSubTable(target, start, x, y, width); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: copyColorTable + * Signature: (IIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_copyColorTable + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint x, jint y, jint width) +{ + glCopyColorTable(target, internalformat, x, y, width); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: blendEquation + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_blendEquation + (JNIEnv *env, jobject obj, jint mode) +{ + glBlendEquation(mode); + CHECK_GL_ERROR +} + + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: histogram + * Signature: (IIIZ)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_histogram + (JNIEnv *env, jobject obj, jint target, jint width, jint internalformat, jboolean sink) +{ + glHistogram(target, width, internalformat, sink); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: resetHistogram + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_resetHistogram + (JNIEnv *env, jobject obj, jint target) +{ + glResetHistogram(target); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getHistogram + * Signature: (IZIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getHistogram + (JNIEnv *env, jobject obj, jint target, jboolean reset, jint format, jint type, jint values) +{ + glGetHistogram(target, reset, format, type, (void *)values); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getHistogramParameterfv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getHistogramParameterfv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetHistogramParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getHistogramParameteriv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getHistogramParameteriv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetHistogramParameteriv(target, pname, (int *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: minmax + * Signature: (IIZ)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_minmax + (JNIEnv *env, jobject obj, jint target, jint internalformat, jboolean sink) +{ + glMinmax(target, internalformat, sink); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: resetMinmax + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_resetMinmax + (JNIEnv *env, jobject obj, jint target) +{ + glResetMinmax(target); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getMinmax + * Signature: (IZIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getMinmax + (JNIEnv *env, jobject obj, jint target, jboolean reset, jint format, jint type, jint values) +{ + glGetMinmax(target, reset, format, type, (void *)values); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getMinmaxParameterfv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getMinmaxParameterfv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetMinmaxParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getMinmaxParameteriv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getMinmaxParameteriv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetMinmaxParameteriv(target, pname, (int *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionFilter1D + * Signature: (IIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionFilter1D + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint width, jint format, jint type, jint image) +{ + glConvolutionFilter1D(target, internalformat, width, format, type, (void *)image); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionFilter2D + * Signature: (IIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionFilter2D + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint image) +{ + glConvolutionFilter2D(target, internalformat, width, height, format, type, (void *)image); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionParameterf + * Signature: (IIF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionParameterf + (JNIEnv *env, jobject obj, jint target, jint pname, jfloat params) +{ + glConvolutionParameterf(target, pname, params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionParameterfv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionParameterfv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glConvolutionParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionParameteri + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionParameteri + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glConvolutionParameteri(target, pname, params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: convolutionParameteriv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_convolutionParameteriv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glConvolutionParameteriv(target, pname, (int *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: copyConvolutionFilter1D + * Signature: (IIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_copyConvolutionFilter1D + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint x, jint y, jint width) +{ + glCopyConvolutionFilter1D(target, internalformat, x, y, width); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: copyConvolutionFilter2D + * Signature: (IIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_copyConvolutionFilter2D + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint x, jint y, jint width, jint height) +{ + glCopyConvolutionFilter2D(target, internalformat, x, y, width, height); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getConvolutionFilter + * Signature: (IIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getConvolutionFilter + (JNIEnv *env, jobject obj, jint target, jint format, jint type, jint image) +{ + glGetConvolutionFilter(target, format, type, (void *)image); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getConvolutionParameterfv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getConvolutionParameterfv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetConvolutionParameterfv(target, pname, (float *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getConvolutionParameteriv + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getConvolutionParameteriv + (JNIEnv *env, jobject obj, jint target, jint pname, jint params) +{ + glGetConvolutionParameteriv(target, pname, (int *)params); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: separableFilter2D + * Signature: (IIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_separableFilter2D + (JNIEnv *env, jobject obj, jint target, jint internalformat, jint width, jint height, jint format, jint type, jint row, jint column) +{ + glSeparableFilter2D(target, internalformat, width, height, format, type, (void *)row, (void *)column); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getSeparableFilter + * Signature: (IIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getSeparableFilter + (JNIEnv *env, jobject obj, jint target, jint format, jint type, jint row, jint column, jint span) +{ + glGetSeparableFilter(target, format, type, (void *)row, (void *)column, (void *)span); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: drawRangeElements + * Signature: (IIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_drawRangeElements + (JNIEnv *env, jobject obj, jint mode, jint start, jint end, jint count, jint type, jint indices) +{ + glDrawRangeElements(mode, start, end, count, type, (void *)indices); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: texImage3D + * Signature: (IIIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_texImage3D + (JNIEnv *env, jobject obj, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint format, jint type, jint pixels) +{ + glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, (void *)pixels); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: texSubImage3D + * Signature: (IIIIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_texSubImage3D + (JNIEnv *env, jobject obj, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jint pixels) +{ + glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (void *)pixels); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: copyTexSubImage3D + * Signature: (IIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_copyTexSubImage3D + (JNIEnv *env, jobject obj, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height) +{ + glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: activeTexture + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_activeTexture + (JNIEnv *env, jobject obj, jint texture) +{ + glActiveTexture(texture); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: clientActiveTexture + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_clientActiveTexture + (JNIEnv *env, jobject obj, jint texture) +{ + glClientActiveTexture(texture); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexImage1D + * Signature: (IIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexImage1D + (JNIEnv *env, jobject obj, jint target, jint level, jint internalformat, jint width, jint border, jint imagesize, jint data) +{ + glCompressedTexImage1D(target, level, internalformat, width, border, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexImage2D + * Signature: (IIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexImage2D + (JNIEnv *env, jobject obj, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imagesize, jint data) +{ + glCompressedTexImage2D(target, level, internalformat, width, height, border, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexImage3D + * Signature: (IIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexImage3D + (JNIEnv *env, jobject obj, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imagesize, jint data) +{ + glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexSubImage1D + * Signature: (IIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexSubImage1D + (JNIEnv *env, jobject obj, jint target, jint level, jint xoffset, jint width, jint format, jint imagesize, jint data) +{ + glCompressedTexSubImage1D(target, level, xoffset, width, format, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexSubImage2D + * Signature: (IIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexSubImage2D + (JNIEnv *env, jobject obj, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imagesize, jint data) +{ + glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: compressedTexSubImage3D + * Signature: (IIIIIIIIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_compressedTexSubImage3D + (JNIEnv *env, jobject obj, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imagesize, jint data) +{ + glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, (void *)data); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: getCompressedTexImage + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_getCompressedTexImage + (JNIEnv *env, jobject obj, jint target, jint lod, jint img) +{ + glGetCompressedTexImage(target, lod, (void *)img); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1d + * Signature: (ID)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1d + (JNIEnv *env, jobject obj, jint target, jdouble s) +{ + glMultiTexCoord1d(target, s); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1dv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1dv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord1dv(target, (double *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1f + * Signature: (IF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1f + (JNIEnv *env, jobject obj, jint target, jfloat s) +{ + glMultiTexCoord1f(target, s); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1fv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1fv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord1fv(target, (float *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1i + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1i + (JNIEnv *env, jobject obj, jint target, jint s) +{ + glMultiTexCoord1i(target, s); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1iv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1iv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord1iv(target, (int *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1s + * Signature: (IS)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1s + (JNIEnv *env, jobject obj, jint target, jshort s) +{ + glMultiTexCoord1s(target, s); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord1sv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord1sv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord1sv(target, (short *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2d + * Signature: (IDD)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2d + (JNIEnv *env, jobject obj, jint target, jdouble s, jdouble t) +{ + glMultiTexCoord2d(target, s, t); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2dv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2dv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord2dv(target, (double *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2f + * Signature: (IFF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2f + (JNIEnv *env, jobject obj, jint target, jfloat s, jfloat t) +{ + glMultiTexCoord2f(target, s, t); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2fv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2fv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord2fv(target, (float *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2i + * Signature: (III)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2i + (JNIEnv *env, jobject obj, jint target, jint s, jint t) +{ + glMultiTexCoord2i(target, s, t); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2iv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2iv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord2iv(target, (int *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2s + * Signature: (ISS)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2s + (JNIEnv *env, jobject obj, jint target, jshort s, jshort t) +{ + glMultiTexCoord2s(target, s, t); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord2sv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord2sv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord2sv(target, (short *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3d + * Signature: (IDDD)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3d + (JNIEnv *env, jobject obj, jint target, jdouble s, jdouble t, jdouble r) +{ + glMultiTexCoord3d(target, s, t, r); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3dv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3dv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord3dv(target, (double *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3f + * Signature: (IFFF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3f + (JNIEnv *env, jobject obj, jint target, jfloat s, jfloat t, jfloat r) +{ + glMultiTexCoord3f(target, s, t, r); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3fv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3fv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord3fv(target, (float *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3i + * Signature: (IIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3i + (JNIEnv *env, jobject obj, jint target, jint s, jint t, jint r) +{ + glMultiTexCoord3i(target, s, t, r); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3iv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3iv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord3iv(target, (int *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3s + * Signature: (ISSS)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3s + (JNIEnv *env, jobject obj, jint target, jshort s, jshort t, jshort r) +{ + glMultiTexCoord3s(target, s, t, r); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord3sv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord3sv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord3sv(target, (short *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4d + * Signature: (IDDDD)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4d + (JNIEnv *env, jobject obj, jint target, jdouble s, jdouble t, jdouble r, jdouble q) +{ + glMultiTexCoord4d(target, s, t, r, q); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4dv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4dv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord4dv(target, (double *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4f + * Signature: (IFFFF)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4f + (JNIEnv *env, jobject obj, jint target, jfloat s, jfloat t, jfloat r, jfloat q) +{ + glMultiTexCoord4f(target, s, t, r, q); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4fv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4fv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord4fv(target, (float *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4i + * Signature: (IIIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4i + (JNIEnv *env, jobject obj, jint target, jint s, jint t, jint r, jint q) +{ + glMultiTexCoord4i(target, s, t, r, q); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4iv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4iv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord4iv(target, (int *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4s + * Signature: (ISSSS)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4s + (JNIEnv *env, jobject obj, jint target, jshort s, jshort t, jshort r, jshort q) +{ + glMultiTexCoord4s(target, s, t, r, q); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multiTexCoord4sv + * Signature: (II)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multiTexCoord4sv + (JNIEnv *env, jobject obj, jint target, jint v) +{ + glMultiTexCoord4sv(target, (short *)v); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: loadTransposeMatrixd + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_loadTransposeMatrixd + (JNIEnv *env, jobject obj, jint m) +{ + glLoadTransposeMatrixd((double *)m); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: loadTransposeMatrixf + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_loadTransposeMatrixf + (JNIEnv *env, jobject obj, jint m) +{ + glLoadTransposeMatrixf((float *)m); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multTransposeMatrixd + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multTransposeMatrixd + (JNIEnv *env, jobject obj, jint m) +{ + glMultTransposeMatrixd((double *)m); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: multTransposeMatrixf + * Signature: (I)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multTransposeMatrixf + (JNIEnv *env, jobject obj, jint m) +{ + glMultTransposeMatrixf((float *)m); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: sampleCoverage + * Signature: (FZ)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_sampleCoverage + (JNIEnv *env, jobject obj, jfloat value, jboolean invert) +{ + glSampleCoverage(value, invert); CHECK_GL_ERROR } |
From: Elias N. <eli...@us...> - 2002-11-24 13:21:05
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv12991/native/common Modified Files: org_lwjgl_opengl_CoreGL.h Log Message: Created new jni header for CoreGL Index: org_lwjgl_opengl_CoreGL.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_CoreGL.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_CoreGL.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_opengl_CoreGL.h 15 Oct 2002 20:30:47 -0000 1.4 +++ org_lwjgl_opengl_CoreGL.h 24 Nov 2002 13:21:01 -0000 1.5 @@ -1,2608 +1,3352 @@ /* DO NOT EDIT THIS FILE - it is machine generated */ -#include <jni.h> +#include <jni.h> /* Header for class org_lwjgl_opengl_CoreGL */ #ifndef _Included_org_lwjgl_opengl_CoreGL -#define _Included_org_lwjgl_opengl_CoreGL +#define _Included_org_lwjgl_opengl_CoreGL #ifdef __cplusplus extern "C" { -#endif [...5597 lines suppressed...] - * Method: viewport - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_viewport + +/* + * Class: org_lwjgl_opengl_CoreGL + * Method: viewport + * Signature: (IIII)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_viewport (JNIEnv *, jobject, jint, jint, jint, jint); - + #ifdef __cplusplus } -#endif -#endif +#endif +#endif |
From: Elias N. <eli...@us...> - 2002-11-24 13:17:55
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv11147/lwjgl/opengl Modified Files: CoreGLConstants.java CoreGL.java Log Message: Added missing GL constants and functions Index: CoreGLConstants.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGLConstants.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGLConstants.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CoreGLConstants.java 15 Aug 2002 16:18:12 -0000 1.3 +++ CoreGLConstants.java 24 Nov 2002 13:17:52 -0000 1.4 @@ -926,6 +926,227 @@ /* GL_TEXTURE_BORDER_COLOR */ /* GL_TEXTURE_PRIORITY */ + /* OpenGL 1.2 constants */ + public static final int RESCALE_NORMAL = 0x803A; + public static final int CLAMP_TO_EDGE = 0x812F; + public static final int MAX_ELEMENTS_VERTICES = 0x80E8; + public static final int MAX_ELEMENTS_INDICES = 0x80E9; + public static final int BGR = 0x80E0; + public static final int BGRA = 0x80E1; + public static final int UNSIGNED_BYTE_3_3_2 = 0x8032; + public static final int UNSIGNED_BYTE_2_3_3_REV = 0x8362; + public static final int UNSIGNED_SHORT_5_6_5 = 0x8363; + public static final int UNSIGNED_SHORT_5_6_5_REV = 0x8364; + public static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; + public static final int UNSIGNED_SHORT_4_4_4_4_REV = 0x8365; + public static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; + public static final int UNSIGNED_SHORT_1_5_5_5_REV = 0x8366; + public static final int UNSIGNED_INT_8_8_8_8 = 0x8035; + public static final int UNSIGNED_INT_8_8_8_8_REV = 0x8367; + public static final int UNSIGNED_INT_10_10_10_2 = 0x8036; + public static final int UNSIGNED_INT_2_10_10_10_REV = 0x8368; + public static final int LIGHT_MODEL_COLOR_CONTROL = 0x81F8; + public static final int SINGLE_COLOR = 0x81F9; + public static final int SEPARATE_SPECULAR_COLOR = 0x81FA; + public static final int TEXTURE_MIN_LOD = 0x813A; + public static final int TEXTURE_MAX_LOD = 0x813B; + public static final int TEXTURE_BASE_LEVEL = 0x813C; + public static final int TEXTURE_MAX_LEVEL = 0x813D; + public static final int SMOOTH_POINT_SIZE_RANGE = 0x0B12; + public static final int SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13; + public static final int SMOOTH_LINE_WIDTH_RANGE = 0x0B22; + public static final int SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23; + public static final int ALIASED_POINT_SIZE_RANGE = 0x846D; + public static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; + public static final int PACK_SKIP_IMAGES = 0x806B; + public static final int PACK_IMAGE_HEIGHT = 0x806C; + public static final int UNPACK_SKIP_IMAGES = 0x806D; + public static final int UNPACK_IMAGE_HEIGHT = 0x806E; + public static final int TEXTURE_3D = 0x806F; + public static final int PROXY_TEXTURE_3D = 0x8070; + public static final int TEXTURE_DEPTH = 0x8071; + public static final int TEXTURE_WRAP_R = 0x8072; + public static final int MAX_3D_TEXTURE_SIZE = 0x8073; + public static final int TEXTURE_BINDING_3D = 0x806A; + public static final int COLOR_TABLE = 0x80D0; + public static final int POST_CONVOLUTION_COLOR_TABLE = 0x80D1; + public static final int POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2; + public static final int PROXY_COLOR_TABLE = 0x80D3; + public static final int PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4; + public static final int PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5; + public static final int COLOR_TABLE_SCALE = 0x80D6; + public static final int COLOR_TABLE_BIAS = 0x80D7; + public static final int COLOR_TABLE_FORMAT = 0x80D8; + public static final int COLOR_TABLE_WIDTH = 0x80D9; + public static final int COLOR_TABLE_RED_SIZE = 0x80DA; + public static final int COLOR_TABLE_GREEN_SIZE = 0x80DB; + public static final int COLOR_TABLE_BLUE_SIZE = 0x80DC; + public static final int COLOR_TABLE_ALPHA_SIZE = 0x80DD; + public static final int COLOR_TABLE_LUMINANCE_SIZE = 0x80DE; + public static final int COLOR_TABLE_INTENSITY_SIZE = 0x80DF; + public static final int CONVOLUTION_1D = 0x8010; + public static final int CONVOLUTION_2D = 0x8011; + public static final int SEPARABLE_2D = 0x8012; + public static final int CONVOLUTION_BORDER_MODE = 0x8013; + public static final int CONVOLUTION_FILTER_SCALE = 0x8014; + public static final int CONVOLUTION_FILTER_BIAS = 0x8015; + public static final int REDUCE = 0x8016; + public static final int CONVOLUTION_FORMAT = 0x8017; + public static final int CONVOLUTION_WIDTH = 0x8018; + public static final int CONVOLUTION_HEIGHT = 0x8019; + public static final int MAX_CONVOLUTION_WIDTH = 0x801A; + public static final int MAX_CONVOLUTION_HEIGHT = 0x801B; + public static final int POST_CONVOLUTION_RED_SCALE = 0x801C; + public static final int POST_CONVOLUTION_GREEN_SCALE = 0x801D; + public static final int POST_CONVOLUTION_BLUE_SCALE = 0x801E; + public static final int POST_CONVOLUTION_ALPHA_SCALE = 0x801F; + public static final int POST_CONVOLUTION_RED_BIAS = 0x8020; + public static final int POST_CONVOLUTION_GREEN_BIAS = 0x8021; + public static final int POST_CONVOLUTION_BLUE_BIAS = 0x8022; + public static final int POST_CONVOLUTION_ALPHA_BIAS = 0x8023; + public static final int CONSTANT_BORDER = 0x8151; + public static final int REPLICATE_BORDER = 0x8153; + public static final int CONVOLUTION_BORDER_COLOR = 0x8154; + public static final int COLOR_MATRIX = 0x80B1; + public static final int COLOR_MATRIX_STACK_DEPTH = 0x80B2; + public static final int MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3; + public static final int POST_COLOR_MATRIX_RED_SCALE = 0x80B4; + public static final int POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5; + public static final int POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6; + public static final int POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7; + public static final int POST_COLOR_MATRIX_RED_BIAS = 0x80B8; + public static final int POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9; + public static final int POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA; + public static final int POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB; + public static final int HISTOGRAM = 0x8024; + public static final int PROXY_HISTOGRAM = 0x8025; + public static final int HISTOGRAM_WIDTH = 0x8026; + public static final int HISTOGRAM_FORMAT = 0x8027; + public static final int HISTOGRAM_RED_SIZE = 0x8028; + public static final int HISTOGRAM_GREEN_SIZE = 0x8029; + public static final int HISTOGRAM_BLUE_SIZE = 0x802A; + public static final int HISTOGRAM_ALPHA_SIZE = 0x802B; + public static final int HISTOGRAM_LUMINANCE_SIZE = 0x802C; + public static final int HISTOGRAM_SINK = 0x802D; + public static final int MINMAX = 0x802E; + public static final int MINMAX_FORMAT = 0x802F; + public static final int MINMAX_SINK = 0x8030; + public static final int TABLE_TOO_LARGE = 0x8031; + public static final int BLEND_EQUATION = 0x8009; + public static final int MIN = 0x8007; + public static final int MAX = 0x8008; + public static final int FUNC_ADD = 0x8006; + public static final int FUNC_SUBTRACT = 0x800A; + public static final int FUNC_REVERSE_SUBTRACT = 0x800B; + public static final int BLEND_COLOR = 0x8005; + public static final int CONSTANT_COLOR = 0x8001; + public static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; + public static final int CONSTANT_ALPHA = 0x8003; + public static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; + + /* OpenGL 1.3 constants */ + public static final int TEXTURE0 = 0x84C0; + public static final int TEXTURE1 = 0x84C1; + public static final int TEXTURE2 = 0x84C2; + public static final int TEXTURE3 = 0x84C3; + public static final int TEXTURE4 = 0x84C4; + public static final int TEXTURE5 = 0x84C5; + public static final int TEXTURE6 = 0x84C6; + public static final int TEXTURE7 = 0x84C7; + public static final int TEXTURE8 = 0x84C8; + public static final int TEXTURE9 = 0x84C9; + public static final int TEXTURE10 = 0x84CA; + public static final int TEXTURE11 = 0x84CB; + public static final int TEXTURE12 = 0x84CC; + public static final int TEXTURE13 = 0x84CD; + public static final int TEXTURE14 = 0x84CE; + public static final int TEXTURE15 = 0x84CF; + public static final int TEXTURE16 = 0x84D0; + public static final int TEXTURE17 = 0x84D1; + public static final int TEXTURE18 = 0x84D2; + public static final int TEXTURE19 = 0x84D3; + public static final int TEXTURE20 = 0x84D4; + public static final int TEXTURE21 = 0x84D5; + public static final int TEXTURE22 = 0x84D6; + public static final int TEXTURE23 = 0x84D7; + public static final int TEXTURE24 = 0x84D8; + public static final int TEXTURE25 = 0x84D9; + public static final int TEXTURE26 = 0x84DA; + public static final int TEXTURE27 = 0x84DB; + public static final int TEXTURE28 = 0x84DC; + public static final int TEXTURE29 = 0x84DD; + public static final int TEXTURE30 = 0x84DE; + public static final int TEXTURE31 = 0x84DF; + public static final int ACTIVE_TEXTURE = 0x84E0; + public static final int CLIENT_ACTIVE_TEXTURE = 0x84E1; + public static final int MAX_TEXTURE_UNITS = 0x84E2; + + public static final int NORMAL_MAP = 0x8511; + public static final int REFLECTION_MAP = 0x8512; + public static final int TEXTURE_CUBE_MAP = 0x8513; + public static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; + public static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; + public static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; + public static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; + public static final int PROXY_TEXTURE_CUBE_MAP = 0x851B; + public static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; + + public static final int COMPRESSED_ALPHA = 0x84E9; + public static final int COMPRESSED_LUMINANCE = 0x84EA; + public static final int COMPRESSED_LUMINANCE_ALPHA = 0x84EB; + public static final int COMPRESSED_INTENSITY = 0x84EC; + public static final int COMPRESSED_RGB = 0x84ED; + public static final int COMPRESSED_RGBA = 0x84EE; + public static final int TEXTURE_COMPRESSION_HINT = 0x84EF; + public static final int TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0; + public static final int TEXTURE_COMPRESSED = 0x86A1; + public static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; + public static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; + + public static final int MULTISAMPLE = 0x809D; + public static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; + public static final int SAMPLE_ALPHA_TO_ONE = 0x809F; + public static final int SAMPLE_COVERAGE = 0x80A0; + public static final int SAMPLE_BUFFERS = 0x80A8; + public static final int SAMPLES = 0x80A9; + public static final int SAMPLE_COVERAGE_VALUE = 0x80AA; + public static final int SAMPLE_COVERAGE_INVERT = 0x80AB; + public static final int MULTISAMPLE_BIT = 0x20000000; + + public static final int TRANSPOSE_MODELVIEW_MATRIX = 0x84E3; + public static final int TRANSPOSE_PROJECTION_MATRIX = 0x84E4; + public static final int TRANSPOSE_TEXTURE_MATRIX = 0x84E5; + public static final int TRANSPOSE_COLOR_MATRIX = 0x84E6; + + public static final int COMBINE = 0x8570; + public static final int COMBINE_RGB = 0x8571; + public static final int COMBINE_ALPHA = 0x8572; + public static final int SOURCE0_RGB = 0x8580; + public static final int SOURCE1_RGB = 0x8581; + public static final int SOURCE2_RGB = 0x8582; + public static final int SOURCE0_ALPHA = 0x8588; + public static final int SOURCE1_ALPHA = 0x8589; + public static final int SOURCE2_ALPHA = 0x858A; + public static final int OPERAND0_RGB = 0x8590; + public static final int OPERAND1_RGB = 0x8591; + public static final int OPERAND2_RGB = 0x8592; + public static final int OPERAND0_ALPHA = 0x8598; + public static final int OPERAND1_ALPHA = 0x8599; + public static final int OPERAND2_ALPHA = 0x859A; + public static final int RGB_SCALE = 0x8573; + public static final int ADD_SIGNED = 0x8574; + public static final int INTERPOLATE = 0x8575; + public static final int SUBTRACT = 0x84E7; + public static final int CONSTANT = 0x8576; + public static final int PRIMARY_COLOR = 0x8577; + public static final int PREVIOUS = 0x8578; + public static final int DOT3_RGB = 0x86AE; + public static final int DOT3_RGBA = 0x86AF; + public static final int CLAMP_TO_BORDER = 0x812D; + /* TextureTarget */ /* GL_TEXTURE_1D */ /* GL_TEXTURE_2D */ Index: CoreGL.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- CoreGL.java 18 Oct 2002 23:28:04 -0000 1.6 +++ CoreGL.java 24 Nov 2002 13:17:53 -0000 1.7 @@ -110,6 +110,86 @@ public native void copyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width); public native void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border); public native void copyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int border); + /* OpenGL 1.2 functions */ + public native void colorTableParameteriv(int target, int pname, int params); + public native void colorTableParameterfv(int target, int pname, int params); + public native void copyColorSubTable(int target, int start, int x, int y, int width); + public native void copyColorTable(int target, int internalformat, int x, int y, int width); + public native void blendEquation(int mode); + public native void histogram(int target, int width, int internalformat, boolean sink); + public native void resetHistogram(int target); + public native void getHistogram(int target, boolean reset, int format, int type, int values); + public native void getHistogramParameterfv(int target, int pname, int params); + public native void getHistogramParameteriv(int target, int pname, int params); + public native void minmax(int target, int internalformat, boolean sink); + public native void resetMinmax(int target); + public native void getMinmax(int target, boolean reset, int format, int types, int values); + public native void getMinmaxParameterfv(int target, int pname, int params); + public native void getMinmaxParameteriv(int target, int pname, int params); + public native void convolutionFilter1D(int target, int internalformat, int width, int format, int type, int image); + public native void convolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, int image); + public native void convolutionParameterf(int target, int pname, float params); + public native void convolutionParameterfv(int target, int pname, int params); + public native void convolutionParameteri(int target, int pname, int params); + public native void convolutionParameteriv(int target, int pname, int params); + public native void copyConvolutionFilter1D(int target, int internalformat, int x, int y, int width); + public native void copyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height); + public native void getConvolutionFilter(int target, int format, int type, int image); + public native void getConvolutionParameterfv(int target, int pname, int params); + public native void getConvolutionParameteriv(int target, int pname, int params); + public native void separableFilter2D(int target, int internalformat, int width, int height, int format, int type, int row, int column); + public native void getSeparableFilter(int target, int format, int type, int row, int column, int span); + public native void drawRangeElements(int mode, int start, int end, int count, int type, int indices); + public native void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int pixels); + public native void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int pixels); + public native void copyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height); + /* OpenGL 1.3 funstions */ + public native void activeTexture(int texture); + public native void clientActiveTexture(int texture); + public native void compressedTexImage1D(int target, int level, int internalformat, int width, int border, int imageSize, int data); + public native void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, int data); + public native void compressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int data); + public native void compressedTexSubImage1D(int target, int level, int xoffset, int width, int format, int imageSize, int data); + public native void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, int data); + public native void compressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int data); + public native void getCompressedTexImage(int target, int lod, int img); + public native void multiTexCoord1d(int target, double s); + public native void multiTexCoord1dv(int target, int v); + public native void multiTexCoord1f(int target, float s); + public native void multiTexCoord1fv(int target, int v); + public native void multiTexCoord1i(int target, int s); + public native void multiTexCoord1iv(int target, int v); + public native void multiTexCoord1s(int target, short s); + public native void multiTexCoord1sv(int target, int v); + public native void multiTexCoord2d(int target, double s, double t); + public native void multiTexCoord2dv(int target, int v); + public native void multiTexCoord2f(int target, float s, float t); + public native void multiTexCoord2fv(int target, int v); + public native void multiTexCoord2i(int target, int s, int t); + public native void multiTexCoord2iv(int target, int v); + public native void multiTexCoord2s(int target, short s, short t); + public native void multiTexCoord2sv(int target, int v); + public native void multiTexCoord3d(int target, double s, double t, double r); + public native void multiTexCoord3dv(int target, int v); + public native void multiTexCoord3f(int target, float s, float t, float r); + public native void multiTexCoord3fv(int target, int v); + public native void multiTexCoord3i(int target, int s, int t, int r); + public native void multiTexCoord3iv(int target, int v); + public native void multiTexCoord3s(int target, short s, short t, short r); + public native void multiTexCoord3sv(int target, int v); + public native void multiTexCoord4d(int target, double s, double t, double r, double q); + public native void multiTexCoord4dv(int target, int v); + public native void multiTexCoord4f(int target, float s, float t, float r, float q); + public native void multiTexCoord4fv(int target, int v); + public native void multiTexCoord4i(int target, int s, int t, int r, int q); + public native void multiTexCoord4iv(int target, int v); + public native void multiTexCoord4s(int target, short s, short t, short r, short q); + public native void multiTexCoord4sv(int target, int v); + public native void loadTransposeMatrixd(int m); + public native void loadTransposeMatrixf(int m); + public native void multTransposeMatrixd(int m); + public native void multTransposeMatrixf(int m); + public native void sampleCoverage(float value, boolean invert); public native void copyPixels(int x, int y, int width, int height, int type); public native void colorPointer(int size, int type, int stride, int pointer); public native void colorMaterial(int face, int mode); @@ -130,6 +210,21 @@ public native void color4ub(byte red, byte green, byte blue, byte alpha); public native void color4ui(int red, int green, int blue, int alpha); public native void color4us(short red, short green, short blue, short alpha); + public native void color3bv(int v); + public native void color3dv(int v); + public native void color3fv(int v); + public native void color3iv(int v); + public native void color3sv(int v); + public native void color3ubv(int v); + public native void color3uiv(int v); + public native void color3usv(int v); + public native void color4bv(int v); + public native void color4dv(int v); + public native void color4fv(int v); + public native void color4iv(int v); + public native void color4sv(int v); + public native void color4ubv(int v); + public native void color4uiv(int v); public native void clipPlane(int plane, int equation); public native void clearStencil(int s); public native void clearIndex(float c); |
From: Elias N. <eli...@us...> - 2002-11-24 12:01:27
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv29793/input Modified Files: Keyboard.java Log Message: Added Keyboard.KEY_PAGEUP Keyboard.KEY_PAGEDOWN Index: Keyboard.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Keyboard.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Keyboard.java 6 Sep 2002 23:58:33 -0000 1.10 +++ Keyboard.java 24 Nov 2002 12:01:24 -0000 1.11 @@ -134,6 +134,8 @@ public static final int KEY_DECIMAL = 0x53; /* . on numeric keypad */ public static final int KEY_F11 = 0x57; public static final int KEY_F12 = 0x58; + public static final int KEY_PAGEUP = 0x5B; + public static final int KEY_PAGEDOWN = 0x61; public static final int KEY_F13 = 0x64; /* (NEC PC98) */ public static final int KEY_F14 = 0x65; /* (NEC PC98) */ public static final int KEY_F15 = 0x66; /* (NEC PC98) */ |
From: Brian M. <ma...@us...> - 2002-11-22 21:49:24
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv7153/src/native/win32 Modified Files: org_lwjgl_input_Joystick.cpp Log Message: fix: now copies buttoncount buttons, instead of 4 (doh!) Index: org_lwjgl_input_Joystick.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Joystick.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Joystick.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_input_Joystick.cpp 18 Nov 2002 17:49:27 -0000 1.4 +++ org_lwjgl_input_Joystick.cpp 22 Nov 2002 21:49:20 -0000 1.5 @@ -354,7 +354,7 @@ //buttons jbooleanArray buttonsArray = (jbooleanArray) environment->GetStaticObjectField(clsJoystick, fidButtons); BYTE * buttons = (BYTE *) environment->GetPrimitiveArrayCritical(buttonsArray, NULL); - memcpy(buttons, js.rgbButtons, 4); + memcpy(buttons, js.rgbButtons, buttoncount); environment->ReleasePrimitiveArrayCritical(buttonsArray, buttons, 0); //pov |
From: Elias N. <eli...@us...> - 2002-11-22 11:35:06
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv28021 Modified Files: org_lwjgl_Sys.cpp Log Message: Using linux soft realtime priority for Sys.REALTIME_PRIORITY Index: org_lwjgl_Sys.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Sys.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Sys.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- org_lwjgl_Sys.cpp 19 Nov 2002 08:50:57 -0000 1.1 +++ org_lwjgl_Sys.cpp 22 Nov 2002 11:35:03 -0000 1.2 @@ -39,6 +39,7 @@ * @version $Revision$ */ +#include <sched.h> #include <sys/time.h> #include <sys/resource.h> #include "org_lwjgl_Sys.h" @@ -130,12 +131,40 @@ (JNIEnv * env, jclass clazz, jint priority) { int linux_priority; + int max_pri, min_pri; + struct sched_param sched_pri; + + if (sched_getscheduler(0) != SCHED_OTHER) { + // Reset scheduler to normal + sched_pri.sched_priority = 0; + if (sched_setscheduler(0, SCHED_OTHER, &sched_pri) != 0) { +#ifdef _DEBUG + printf("Could not set realtime priority\n"); +#endif + return; + } + } + switch (priority) { case org_lwjgl_Sys_REALTIME_PRIORITY: - linux_priority = -20; - break; + min_pri = sched_get_priority_min(SCHED_FIFO); + max_pri = sched_get_priority_max(SCHED_FIFO); + if (min_pri == -1 || max_pri == -1) { +#ifdef _DEBUG + printf("Failed to set realtime priority\n"); +#endif + return; + } + sched_pri.sched_priority = (max_pri + min_pri)/2; + if (sched_setscheduler(0, SCHED_FIFO, &sched_pri) != 0) { +#ifdef _DEBUG + printf("Could not set realtime priority\n"); +#endif + return; + } + return; case org_lwjgl_Sys_HIGH_PRIORITY: - linux_priority = -10; + linux_priority = -20; break; case org_lwjgl_Sys_NORMAL_PRIORITY: linux_priority = 0; |
From: Elias N. <eli...@us...> - 2002-11-22 11:24:15
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv14942/org/lwjgl/test/opengl Modified Files: Game.java Log Message: Dont let Game.java use realtime priority Index: Game.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Game.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Game.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Game.java 19 Nov 2002 16:48:25 -0000 1.1 +++ Game.java 22 Nov 2002 11:24:12 -0000 1.2 @@ -155,7 +155,7 @@ Keyboard.enableBuffer(); Mouse.create(); Sys.setTime(0); - Sys.setProcessPriority(Sys.REALTIME_PRIORITY); + Sys.setProcessPriority(Sys.HIGH_PRIORITY); System.out.println("Timer resolution: " + Sys.getTimerResolution()); // Go into orthographic projection mode. gl.matrixMode(GL.PROJECTION); |
From: Elias N. <eli...@us...> - 2002-11-22 09:40:21
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv22804 Modified Files: Makefile Log Message: The Makefile now strips the release library to make it smaller Index: Makefile CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/Makefile =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/Makefile,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- Makefile 22 Nov 2002 09:34:10 -0000 1.10 +++ Makefile 22 Nov 2002 09:40:18 -0000 1.11 @@ -61,6 +61,7 @@ liblwjgl.so: $(LIBOBJS) $(LINK) -shared -o $@ $^ $(LINKOPTS) + strip $@ cp $@ ../../../bin/ .SUFFIXES: .cpp .so .o .java .h .class .c |
From: Elias N. <eli...@us...> - 2002-11-22 09:34:13
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv19784 Modified Files: Makefile Log Message: make g++ compile with -O3 Index: Makefile CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/Makefile =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/Makefile,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile 19 Nov 2002 14:58:34 -0000 1.9 +++ Makefile 22 Nov 2002 09:34:10 -0000 1.10 @@ -50,6 +50,7 @@ LIBOBJS=$(LIBCOBJS) $(LIBCPPOBJS) #DEBUG_FLAGS=-D_DEBUG LINKOPTS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lGL -lGLU -lopenal +BUILDOPTS=-O3 -Wall all: liblwjgl.so @@ -65,7 +66,7 @@ .SUFFIXES: .cpp .so .o .java .h .class .c %.o : %.cpp - $(G++) $(DEBUG_FLAGS) -Wall -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $< + $(G++) $(DEBUG_FLAGS) $(BUILDOPTS) -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $< %.o : %.c $(GCC) $(DEBUG_FLAGS) -Wall -I$(JAVAHOME)/include -I../common -I$(JAVAHOME)/include/linux -c -o $@ $< |
From: Brian M. <ma...@us...> - 2002-11-21 23:05:49
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv4263 Modified Files: .project Log Message: *** keyword substitution change *** Index: .project CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/.project =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/.project,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 |
From: Brian M. <ma...@us...> - 2002-11-21 23:05:08
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv4015 Modified Files: .project Log Message: *** keyword substitution change *** Index: .project CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/.project =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/.project,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 |
From: Brian M. <ma...@us...> - 2002-11-21 22:46:27
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv31347 Modified Files: .project Log Message: fix: made .project file into java project Index: .project CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/.project =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/.project,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- .project 11 Aug 2002 23:38:49 -0000 1.1 +++ .project 21 Nov 2002 22:46:24 -0000 1.2 @@ -5,7 +5,13 @@ <projects> </projects> <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> + <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription> |
From: Brian M. <ma...@us...> - 2002-11-21 22:38:10
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal In directory sc8-pr-cvs1:/tmp/cvs-serv27895/src/java/org/lwjgl/test/openal Modified Files: ALTest.java Log Message: fix: removed unneeded import fix: removed getSource3f reference Index: ALTest.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALTest.java 19 Nov 2002 16:48:25 -0000 1.1 +++ ALTest.java 21 Nov 2002 22:38:07 -0000 1.2 @@ -35,7 +35,6 @@ import org.lwjgl.openal.ALC; import org.lwjgl.openal.ALCcontext; import org.lwjgl.openal.ALCdevice; -import org.lwjgl.openal.ALUT; import org.lwjgl.openal.ALUTLoadWAVData; import org.lwjgl.openal.eax.EAX; import org.lwjgl.openal.eax.EAXBufferProperties; @@ -1195,10 +1194,6 @@ CRToContinue(); al.sourcei(testSources.get(0), AL.LOOPING, AL.TRUE); al.source3f(testSources.get(0), AL.POSITION, 0.0f, 0.0f, -100.0f); - al.getSource3f(testSources.get(0), AL.POSITION, Sys.getDirectBufferAddress(tempFVect), Sys.getDirectBufferAddress(tempFVect) + 4, Sys.getDirectBufferAddress(tempFVect) + 8); - if ((tempFVect.get(0) != 0.0f) || (tempFVect.get(1) != 0.0f) || (tempFVect.get(2) != -100.0f)) { - System.out.print("ERROR: alGetSource3f(..., AL_POSITION, ...).\n"); - } al.getSourcefv(testSources.get(0), AL.POSITION, Sys.getDirectBufferAddress(tempFVect)); if ((tempFVect.get(0) != 0.0f) || (tempFVect.get(1) != 0.0f) || (tempFVect.get(2) != -100.0f)) { System.out.print("ERROR: alGetSourcefv(..., AL_POSITION, ...).\n"); |
From: Brian M. <ma...@us...> - 2002-11-21 22:36:39
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal In directory sc8-pr-cvs1:/tmp/cvs-serv27489/src/java/org/lwjgl/test/openal Modified Files: EAXTest.java Log Message: fix: removed unneeded import Index: EAXTest.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/EAXTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/EAXTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- EAXTest.java 19 Nov 2002 16:48:25 -0000 1.1 +++ EAXTest.java 21 Nov 2002 22:36:36 -0000 1.2 @@ -32,12 +32,6 @@ package org.lwjgl.test.openal; import org.lwjgl.openal.eax.EAX; -import org.lwjgl.openal.eax.EAXBufferProperties; -import java.nio.IntBuffer; - -import org.lwjgl.Sys; -import org.lwjgl.openal.AL; -import org.lwjgl.openal.ALUTLoadWAVData; /** * $Id$ |
From: Brian M. <ma...@us...> - 2002-11-21 22:36:07
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal In directory sc8-pr-cvs1:/tmp/cvs-serv27374/src/java/org/lwjgl/test/openal Modified Files: ALCTest.java Log Message: fix: removed unneeded import Index: ALCTest.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALCTest.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/openal/ALCTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ALCTest.java 19 Nov 2002 16:48:25 -0000 1.1 +++ ALCTest.java 21 Nov 2002 22:36:03 -0000 1.2 @@ -31,7 +31,6 @@ */ package org.lwjgl.test.openal; -import org.lwjgl.openal.AL; import org.lwjgl.openal.ALC; import org.lwjgl.openal.ALCcontext; import org.lwjgl.openal.ALCdevice; |
From: Brian M. <ma...@us...> - 2002-11-21 22:35:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax In directory sc8-pr-cvs1:/tmp/cvs-serv27153/src/java/org/lwjgl/openal/eax Modified Files: EAXBufferProperties.java Log Message: fix: removed unneeded import Index: EAXBufferProperties.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax/EAXBufferProperties.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/openal/eax/EAXBufferProperties.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- EAXBufferProperties.java 11 Sep 2002 16:46:26 -0000 1.3 +++ EAXBufferProperties.java 21 Nov 2002 22:35:16 -0000 1.4 @@ -35,7 +35,6 @@ import java.nio.ByteBuffer; import java.nio.ByteOrder; -import java.lang.reflect.*; /** * $Id$ |
From: Elias N. <eli...@us...> - 2002-11-21 15:13:53
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv6033 Added Files: Grass.java cg_grass2.cg cg_grass2.vp Log Message: Added shader demo Grass.java --- NEW FILE: Grass.java --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Grass.java import org.lwjgl.input.*; import org.lwjgl.opengl.*; import org.lwjgl.*; import java.net.*; import java.io.*; import java.nio.*; import java.util.*; class Aslod { float angle; float value; float ripple; float count; } public class Grass { private static boolean finished = false; private static Random rand = new Random(); static { try { DisplayMode[] modes = Display.getAvailableDisplayModes(); System.out.println("Available display modes:"); for (int i = 0; i < modes.length; i ++) System.out.println(modes[i]); // For now let's just pick a mode we're certain to have Display.create(new DisplayMode(800, 600, 16, 60), false); System.out.println("Created display."); } catch (Exception e) { System.err.println("Failed to create display due to "+e); System.exit(1); } } public static final GL gl = new GL(16, 0, 16, 8); public static final GLU glu = new GLU(gl); static { try { gl.create(); Keyboard.create(); Keyboard.enableBuffer(); Mouse.create(); System.out.println("Created OpenGL."); } catch (Exception e) { System.err.println("Failed to create OpenGL due to "+e); System.exit(1); } } private static Aslod aslod = new Aslod(); private static int mesh; private static int program_handle; private static byte[] loadFile(String file) { int next; java.util.Vector bytes = new java.util.Vector(); try { ClassLoader loader = ClassLoader.getSystemClassLoader(); URL url = loader.getResource(file); InputStream stream = new BufferedInputStream(url.openStream()); while ((next = (stream.read())) != -1) bytes.add(new Byte((byte)next)); stream.close(); byte[] result = new byte[bytes.size()]; for (int i = 0; i < result.length; i++) result[i] = ((Byte)bytes.get(i)).byteValue(); return result; } catch (Exception e) { e.printStackTrace(); } return null; } public static void main(String[] args) { ByteBuffer byte_buf = ByteBuffer.allocateDirect(4); byte_buf.order(ByteOrder.nativeOrder()); System.out.println("Vertex program supported: " + gl.NV_vertex_program); gl.genProgramsNV(1, Sys.getDirectBufferAddress(byte_buf)); IntBuffer int_buf = byte_buf.asIntBuffer(); if (int_buf.get(0) == 0) throw new RuntimeException("Could not allocate new vertex program id!"); program_handle = int_buf.get(0); byte[] program = loadFile("cg_grass2.vp"); ByteBuffer program_buf = ByteBuffer.allocateDirect(program.length); program_buf.order(ByteOrder.nativeOrder()); program_buf.rewind(); program_buf.put(program); program_buf.rewind(); gl.loadProgramNV(GL.VERTEX_PROGRAM_NV, program_handle, program_buf.remaining(), Sys.getDirectBufferAddress(program_buf)); /*gl.getIntegerv(GL.PROGRAM_ERROR_POSITION_NV, Sys.getDirectBufferAddress(int_buf)); System.out.println("error position: " + int_buf.get(0));*/ genMesh(); float[] LightDiffuse = {1.0f, 0.0f, 0.0f, 1.0f}; float[] LightPosition = {1.0f, 1.0f, 1.0f, 0.0f}; ByteBuffer light_buf = ByteBuffer.allocateDirect(4*4); light_buf.order(ByteOrder.nativeOrder()); FloatBuffer light_buf_f = light_buf.asFloatBuffer(); light_buf_f.rewind(); light_buf_f.put(LightDiffuse); gl.lightfv(GL.LIGHT0, GL.DIFFUSE, Sys.getDirectBufferAddress(light_buf_f)); light_buf_f.rewind(); light_buf_f.put(LightPosition); gl.lightfv(GL.LIGHT0, GL.POSITION, Sys.getDirectBufferAddress(light_buf_f)); gl.enable(GL.LIGHT0); gl.enable(GL.LIGHTING); gl.enable(GL.DEPTH_TEST); gl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA); gl.enable(GL.BLEND); gl.matrixMode(GL.PROJECTION); glu.perspective(40.0, 1.0, 1.0, 50.0); gl.matrixMode(GL.MODELVIEW); glu.lookAt(14.0, 10.0, -16.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); aslod.angle = 2.6179935f; aslod.value = 0.2f; aslod.ripple = 0.0f; aslod.count = 0.0f; while (!finished) { keyPoll(); float degree = (1.0f + (aslod.value * 20.0f)) * 0.01745329f; degree *= (0.5 + myrand()) ; ptrAnimate(degree); gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); //ptrDraw(); grsDraw(); gl.swapBuffers(); } Mouse.destroy(); Keyboard.destroy(); gl.destroy(); Display.destroy(); } private static float myrand() { // returns a value between 0 and 1 return rand.nextFloat(); } private static void genGrass( float fFaceHeight, float fFaceWidth, float fX, float fZ ) { int cFaces; int numFaces; float cWidth; float fDecWidth, frndWidth, frndHeight; float fRotate; float fRigid; numFaces = 5; frndHeight = fFaceHeight + ((fFaceHeight / 1.5f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); frndWidth = fFaceWidth + ((fFaceWidth / 4.0f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); fDecWidth = frndWidth / 5.0f; fRotate = myrand() * 3.1415f; fRigid = ((fRigid = myrand()) < 0.2f) ? 0.2f : fRigid; if (myrand() < 0.3) gl.begin(GL.LINE_STRIP); else gl.begin(GL.QUAD_STRIP); for (cFaces = 0; cFaces < numFaces; cFaces++) { for (cWidth = frndWidth; cWidth >=-frndWidth; cWidth-=(frndWidth * 2.0f)) { gl.color4f(fX, fRigid, fZ, (float)cFaces/(float)numFaces); gl.vertex3f((float)(((cFaces-2)*0.1f)*java.lang.Math.cos(fRotate)+(cWidth)*java.lang.Math.sin(fRotate)), cFaces*frndHeight, -(float)(((cFaces-2)*0.1f)*java.lang.Math.sin(fRotate) + (cWidth)*java.lang.Math.cos(fRotate))); } frndWidth -= fDecWidth; } gl.end(); } private static void genMesh() { float cI, cJ, fArea; fArea = 20.0f; mesh = gl.genLists(1); gl.newList(mesh, GL.COMPILE); for (cI = -fArea/2; cI < fArea/2; cI+=0.25f) { for (cJ = -fArea/2; cJ < fArea/2; cJ+=0.25f) { genGrass(0.5f, 0.1f, cI, cJ); } } gl.endList(); } private static void grsDraw() { gl.enable(GL.VERTEX_PROGRAM_NV); gl.bindProgramNV(GL.VERTEX_PROGRAM_NV, program_handle); gl.trackMatrixNV(GL.VERTEX_PROGRAM_NV, 0, GL.MODELVIEW_PROJECTION_NV, GL.IDENTITY_NV); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 4, 0.0f, 0.0f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 5, 0.0f, 0.0f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 6, 1.763609f, 0.496495f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 7, -0.943599f, 3.203737f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 8, 4.101107f, 0.943413f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 9, -1.218603f, 6.259399f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 10, 7.214299f, 1.352961f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 11, -1.540748f, 10.080958f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 12, 10.880035f, 1.759046f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 13, -1.852705f, 14.468674f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 14, 14.292879f, 1.973329f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 15, -1.973387f, 18.506531f, 0.0f, 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 16, (float)(java.lang.Math.sin(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f, (float)(java.lang.Math.cos(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 17, 1.7f, 5f, 2f, 0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 18, -0.0187293f, 0.074261f, 0.2121144f, 1.570729f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 20, 0f, 0.5f, 1f, 0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 21, 0.25f, -9f, 0.75f, 0.1591549f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 22, 24.9808f, -24.9808f, -60.14581f, 60.14581f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 23, 85.45379f, -85.45379f, -64.93935f, 64.93935f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 24, 19.73921f, -19.73921f, -1f, 1f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 25, 0f, 4f, 0f, 0f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 19, 1f, 3.141593f, 0.5f, 1f); gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 26, 0.7f, 0.4f, 0f, 0f); gl.callList(mesh); gl.disable(GL.VERTEX_PROGRAM_NV); } /* private static void ptrDraw() { glRotatef((aslod.angle * 180.0f) / 3.1415f, 0, 1, 0); glTranslatef(0, 4.5, -7.5); glRotatef(-90, 0, 1, 0); glRotatef(-45, 0, 0, 1); glMaterialfv(GL.FRONT, GL.AMBIENT, vec4f(.1f,.1f,0,1).v); glMaterialfv(GL.FRONT, GL.DIFFUSE, vec4f(.6f,.6f,.1f,1).v); glMaterialfv(GL.FRONT, GL.SPECULAR, vec4f(1,1,.75f,1).v); glMaterialf(GL.FRONT, GL.SHININESS, 128.f); glutSolidTeapot(aslod.value*5); gl.rotatef(45, 0, 0, 1); gl.totatef(90, 0, 1, 0); gl.translatef(0, -4.5, 7.5); gl.rotatef(-(aslod.angle * 180.0f) / 3.1415f, 0f, 1f, 0f); } */ private static void ptrAnimate(float degree) { aslod.count += degree; aslod.ripple = (float)(java.lang.Math.cos(aslod.count) / 80.0); } private static void keyPoll() { Keyboard.read(); for (int i = 0; i < Keyboard.getNumKeyboardEvents(); i++) { Keyboard.next(); if (!Keyboard.state) continue; switch(Keyboard.key) { case Keyboard.KEY_A: aslod.angle += 0.1; break; case Keyboard.KEY_D: aslod.angle -= 0.1; break; case Keyboard.KEY_W: aslod.value += (aslod.value >= 0.15) ? 0.0 : 0.0025; break; case Keyboard.KEY_S: aslod.value -= (aslod.value <= 0.005) ? 0.0 : 0.0025; break; case Keyboard.KEY_ESCAPE: finished = true; break; } } } } --- NEW FILE: cg_grass2.cg --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/cg_grass2.cg #pragma bind app2vert.position = ATTR0 #pragma bind app2vert.normal = ATTR2 #pragma bind app2vert.color = ATTR3 struct app2vert : application2vertex { float4 position; //in object space float3 normal; //in object space float4 color; }; #pragma bind vert2frag.HPOS = HPOS #pragma bind vert2frag.COL0 = COL0 struct vert2frag : vertex2fragment { float4 HPOS; float4 COL0; }; vert2frag main(app2vert IN, uniform float4x4 ModelViewProj, uniform float4 Stiff[12], uniform float4 Load) { vert2frag OUT; float4 position; float3 normal; float3 disloc; float4 dif; float index; float teta; float alpha; alpha = IN.position.y / 1.7; // matrix line index index = IN.color.a * 5 * 2; // straw stiffness (randomic) Load = Load * IN.color.y; disloc.x = IN.position.x + dot(Stiff[index].xy, Load.xz); disloc.y = IN.position.y; disloc.z = IN.position.z + dot(Stiff[index + 1].xy, Load.xz); // find the normal teta = acos(IN.position.y / length(disloc)); normal = IN.position.xyz - disloc.xyz; normal.y = sin(teta) * length(disloc); normal = normalize(normal); position.x = disloc.x + IN.color.x; position.y = disloc.y; position.z = disloc.z + IN.color.z; position.w = 1; OUT.HPOS = mul(ModelViewProj, position); // calculate diffuse lighting off the normal that was just calculated float4 lightPos = float4(0,4,0,0); float4 lightVec = normalize(lightPos - position); float diffuseInten = dot(lightVec.xyz, normal); diffuseInten = (diffuseInten < 0.5) ? 0.5 : diffuseInten; OUT.COL0 = float4(IN.color.y * 0.7, 0.7, 0.4, alpha) * diffuseInten; return OUT; } --- NEW FILE: cg_grass2.vp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/cg_grass2.vp !!VP1.0 # NV_vertex_program generated by NVIDIA Cg compiler # cgc version 1.5.0001, build date Sep 12 2002 15:49:58 # command line args: -profile vp20 cg_grass2.cg # nv30vp backend compiling 'main' program #vendor NVIDIA Corporation #version 1.0.1 #profile vp20 #program main #semantic main.ModelViewProj #semantic main.Stiff #semantic main.Load #var float4 IN.position : $vin.ATTR0 : ATTR0 : 0 : 1 #var float3 IN.normal : $vin.ATTR2 : ATTR2 : 0 : 1 #var float4 IN.color : $vin.ATTR3 : ATTR3 : 0 : 1 #var float4x4 ModelViewProj : : c[0], 4 : 1 : 1 #var float4 Stiff[0] : : c[4] : 2 : 1 #var float4 Stiff[1] : : c[5] : 2 : 1 #var float4 Stiff[2] : : c[6] : 2 : 1 #var float4 Stiff[3] : : c[7] : 2 : 1 #var float4 Stiff[4] : : c[8] : 2 : 1 #var float4 Stiff[5] : : c[9] : 2 : 1 #var float4 Stiff[6] : : c[10] : 2 : 1 #var float4 Stiff[7] : : c[11] : 2 : 1 #var float4 Stiff[8] : : c[12] : 2 : 1 #var float4 Stiff[9] : : c[13] : 2 : 1 #var float4 Stiff[10] : : c[14] : 2 : 1 #var float4 Stiff[11] : : c[15] : 2 : 1 #var float4 Load : : c[16] : 3 : 1 #var float4 HPOS : $vout.HPOS : HPOS : -1 : 1 #var float4 COL0 : $vout.COL0 : COL0 : -1 : 1 #const c[17] = 1.7 5 2 0 #const c[18] = -0.0187293 0.074261 0.2121144 1.570729 #const c[20] = 0 0.5 1 0 #const c[21] = 0.25 -9 0.75 0.1591549 #const c[22] = 24.9808 -24.9808 -60.14581 60.14581 #const c[23] = 85.45379 -85.45379 -64.93935 64.93935 #const c[24] = 19.73921 -19.73921 -1 1 #const c[25] = 0 4 0 0 #const c[19] = 1 3.141593 0.5 1 #const c[26] = 0.7 0.4 0 0 MUL R2, c[16], v[3].y; MUL R0, v[3].w, c[17].y; MUL R1, R0.x, c[17].z; ARL A0.x, R1.x; MUL R0, c[A0.x + 4].xyxx, R2.xzxx; ADD R0, R0.x, R0.y; ADD R3.x, v[0].x, R0.x; MOV R3.y, v[0].y; MUL R0, c[A0.x + 5].xyxx, R2.xzxx; ADD R0, R0.x, R0.y; ADD R3.z, v[0].z, R0.x; ADD R2.x, R3.x, v[3].x; MOV R2.y, R3.y; ADD R2.z, R3.z, v[3].z; MOV R2.w, c[19].x; DP4 R0.x, c[0], R2; DP4 R0.y, c[1], R2; DP4 R0.z, c[2], R2; DP4 R0.w, c[3], R2; MOV o[HPOS], R0; ADD R1.xz, v[0].xyzx, -R3.xyzx; DP3 R0, R3.xyzx, R3.xyzx; RSQ R0, R0.x; RCP R0, R0.x; RCP R3, R0.x; MUL R6, v[0].y, R3.x; MAX R5, R6.x, -R6.x; MAD R3, c[18].x, R5.x, c[18].y; MAD R3, R3.x, R5.x, -c[18].z; MAD R4, R3.x, R5.x, c[18].w; ADD R3, c[19].x, -R5.x; RSQ R3, R3.x; RCP R3, R3.x; MUL R5, R4.x, R3.x; SLT R4, R6.x, c[17].w; MUL R3, c[17].z, R4.x; MUL R3, R3.x, R5.x; ADD R3, R5.x, -R3.x; MAD R3, R4.x, c[19].y, R3.x; MAD R6, c[21].w, R3.x, -c[21].x; EXP R6.y, R6.x; ADD R3, c[20].xyzx, -R6.yyyy; MUL R5, R3.xyzx, R3.xyzx; SLT R4.x, R6.y, c[21].x; SGE R3, R6.yyyy, c[21].yzyy; MOV R4.yz, R3.xxyw; DP3 R4.y, R4.xyzx, c[24].zwzz; MAD R3, c[22].xyxx, R5.xyzx, c[22].zwzz; MAD R3, R3.xyzx, R5.xyzx, c[23].xyxx; MAD R3, R3.xyzx, R5.xyzx, c[23].zwzz; MAD R3, R3.xyzx, R5.xyzx, c[24].xyxx; MAD R3, R3.xyzx, R5.xyzx, c[24].zwzz; DP3 R5.x, R3.xyzx, -R4.xyzx; MUL R1.y, R5.x, R0.x; DP3 R0, R1.xyzx, R1.xyzx; RSQ R0, R0.x; MUL R3, R0.x, R1.xyzx; ADD R1, c[25], -R2; DP4 R0, R1, R1; RSQ R0, R0.x; MUL R0, R0.x, R1; DP3 R2, R0.xyzx, R3.xyzx; SLT R1, R2.x, c[19].z; ADD R0, c[19].w, -R1.x; MUL R0, R0.x, R2.x; MAD R2, R1.x, c[19].z, R0.x; MUL R1.x, v[3].y, c[26].x; MOV R1.y, c[26].x; MOV R1.z, c[26].y; RCP R0, c[17].x; MUL R1.w, v[0].y, R0.x; MUL o[COL0], R1, R2.x; END # 72 instructions # End of program |
From: Elias N. <eli...@us...> - 2002-11-21 15:05:54
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv2716 Modified Files: org_lwjgl_input_Keyboard.cpp org_lwjgl_input_Mouse.cpp Log Message: Input fixes Index: org_lwjgl_input_Keyboard.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Keyboard.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Keyboard.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_input_Keyboard.cpp 20 Nov 2002 13:54:58 -0000 1.3 +++ org_lwjgl_input_Keyboard.cpp 21 Nov 2002 15:05:50 -0000 1.4 @@ -47,12 +47,12 @@ #define KEYBOARD_BUFFER_SIZE 50 #define KEYBOARD_SIZE 256 -short readBuffer[KEYBOARD_BUFFER_SIZE]; +unsigned char readBuffer[KEYBOARD_BUFFER_SIZE * 2]; jfieldID fid_readBuffer; jfieldID fid_readBufferAddress; unsigned char key_buf[KEYBOARD_SIZE]; -int keyboard_grabbed; +bool keyboard_grabbed; extern Display *disp; extern Window win; @@ -82,12 +82,12 @@ int grabKeyboard(void) { int result = XGrabKeyboard(disp, win, False, GrabModeAsync, GrabModeAsync, CurrentTime); if (result == GrabSuccess) - keyboard_grabbed = 1; + keyboard_grabbed = true; return result; } void ungrabKeyboard(void) { - keyboard_grabbed = 0; + keyboard_grabbed = false; XUngrabKeyboard(disp, CurrentTime); } @@ -134,27 +134,32 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Keyboard_nDestroy (JNIEnv * env, jclass clazz) { - ungrabKeyboard(); + if (keyboard_grabbed) + ungrabKeyboard(); } int checkKeyEvents(unsigned char *result_buf) { XEvent event; int count = 0; int buf_count = 0; + int state; updateKeyboardGrab(); while (XCheckMaskEvent(disp, KeyPressMask | KeyReleaseMask, &event)) { - unsigned char keycode = (unsigned char)((event.xkey.keycode - 8) & 0xff); - if (result_buf != NULL) { - result_buf[buf_count++] = keycode; - result_buf[buf_count++] = 1; - } count++; + unsigned char keycode = (unsigned char)((event.xkey.keycode - 8) & 0xff); if (event.type == KeyPress) { - key_buf[keycode] = 1; + state = 1; } else if (event.type == KeyRelease) { - key_buf[keycode] = 0; + state = 0; } else assert(0); + key_buf[keycode] = state; + if (result_buf != NULL) { + result_buf[buf_count++] = keycode; + result_buf[buf_count++] = state; + if (buf_count >= KEYBOARD_BUFFER_SIZE * 2) + break; + } } return count; } @@ -190,7 +195,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nEnableBuffer (JNIEnv * env, jclass clazz) { - jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE); + jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE * 2); env->SetStaticObjectField(clazz, fid_readBuffer, newBuffer); env->SetStaticIntField(clazz, fid_readBufferAddress, (jint) (&readBuffer)); return KEYBOARD_BUFFER_SIZE; Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_input_Mouse.cpp 20 Nov 2002 13:54:58 -0000 1.3 +++ org_lwjgl_input_Mouse.cpp 21 Nov 2002 15:05:51 -0000 1.4 @@ -54,7 +54,7 @@ extern int screen; extern int current_fullscreen; -int pointer_grabbed; +bool pointer_grabbed; jfieldID fid_button; jfieldID fid_dx; @@ -132,12 +132,12 @@ } else result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, None, blank_cursor, CurrentTime); if (result == GrabSuccess) - pointer_grabbed = 1; + pointer_grabbed = true; return result; } void ungrabPointer(void) { - pointer_grabbed = 0; + pointer_grabbed = false; XUngrabPointer(disp, CurrentTime); } |