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: Luke H. <lh...@us...> - 2002-11-30 03:35:43
|
Update of /cvsroot/java-game-lib/LWJGL/examples In directory sc8-pr-cvs1:/tmp/cvs-serv15966 Modified Files: Quadrics.java Log Message: Added a quadric callback for GLU.ERROR Index: Quadrics.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/examples/Quadrics.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/examples/Quadrics.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Quadrics.java 27 Nov 2002 22:28:11 -0000 1.2 +++ Quadrics.java 30 Nov 2002 03:35:40 -0000 1.3 @@ -153,6 +153,10 @@ } } + public void quadricError(int type) { + System.out.println("Recieved a quadric error! :"+ type); + } + protected void initGL() throws Exception{ /* Jump To Texture Loading Routine */ try { @@ -162,6 +166,8 @@ quadric = glu.newQuadric(); glu.quadricNormals(quadric, GLU.SMOOTH); glu.quadricTexture(quadric, true); + + glu.quadricCallback(quadric, GLU.ERROR, "quadricError"); } catch (Exception e) { throw new Exception("Problem initialising GL", e); |
From: Luke H. <lh...@us...> - 2002-11-30 03:34:21
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv15746 Removed Files: JavaMethod.cpp Log Message: moved everything to header --- JavaMethod.cpp DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.cpp |
From: Luke H. <lh...@us...> - 2002-11-30 03:32:54
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv15269 Modified Files: README.txt Log Message: Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- README.txt 30 Nov 2002 03:28:30 -0000 1.8 +++ README.txt 30 Nov 2002 03:32:50 -0000 1.9 @@ -1,6 +1,6 @@ This is just the start of my callback implementation. -Unfortunatly, you cant pass a non static method as an object pointer... +Unfortunatly, you cant pass a non static method as a function pointer... So we can only have callbacks for a single GLU object. However, according to the OpenGL redbook... this should not be an issue. For example the redbook states that, a single tess object should be used for an @@ -16,7 +16,7 @@ Of course callbacks for other object types should be easy to do using this framework. -Note quite as elegent as I wanted, but it works. +Note as elegent as I wanted, but it works. You would write a callback like this: |
From: Luke H. <lh...@us...> - 2002-11-30 03:28:33
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv13660/native/common/callbacks Modified Files: GLUQuadricCallbacks.cpp GLUQuadricCallbacks.h JavaMethod.h Makefile.am README.txt Removed Files: CallbackContainer.cpp CallbackContainer.h CallbackManager.cpp CallbackManager.h Log Message: GLU: added quadricCallback(...) methods GLUQuadricCallbacks: Should now be fully implemented removed files: See the README.txt file for more information. Index: GLUQuadricCallbacks.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- GLUQuadricCallbacks.cpp 30 Nov 2002 00:19:59 -0000 1.2 +++ GLUQuadricCallbacks.cpp 30 Nov 2002 03:28:30 -0000 1.3 @@ -7,13 +7,13 @@ #include "GLUQuadricCallbacks.h" +JavaMethod* GLUQuadricCallbacks::errorCallback; + // // Constructor /// -GLUQuadricCallbacks::GLUQuadricCallbacks(GLUquadricObj *quad): - CallbackContainer() +GLUQuadricCallbacks::GLUQuadricCallbacks() { - quadric = quad; errorCallback = NULL; } @@ -22,38 +22,58 @@ // GLUQuadricCallbacks::~GLUQuadricCallbacks() { + clear(); +} + +void GLUQuadricCallbacks::clear() { if (errorCallback != NULL) { delete errorCallback; - } + } } typedef void (GLAPIENTRY *callback_t)(); - -/* having a couple issues. I cant use a pointer to a method as a function pointer? */ - -void GLUQuadricCallbacks::add(JavaMethod *cb, GLenum type) -{ - /* If we are already refering to a callback, get rid of it */ - if (errorCallback != NULL) { - delete errorCallback; - } - +void GLUQuadricCallbacks::set(jint globj, JavaMethod* cb, jint type) +{ switch (type) { case GLU_ERROR: - errorCallback = cb; -// gluQuadricCallback(quadric, type, (callback_t) this->gluError); + /* If we are already refering to a callback, get rid of it */ + if (errorCallback != NULL) { + delete errorCallback; + } + if (cb == NULL) { + gluQuadricCallback((GLUquadricObj *) globj, + (GLenum) type, + NULL); + } + else { + errorCallback = cb; + gluQuadricCallback((GLUquadricObj *) globj, + (GLenum) type, + (callback_t) GLUQuadricCallbacks::gluError); + } break; } } void CALLBACK GLUQuadricCallbacks::gluError(GLenum type) { -// jclass cls = (*errorCallback->env)->GetObjectClass(errorCallback->env, errorCallback->obj); -// jmethodID mid = (*errorCallback->env)->getMethodID(errorCallback->env, cls, errorCallback->method.c_str()); -// if (mid == 0) { -// return; -// } -// /* Hopefully this will end up calling the java method for handling GLU_ERROR for this quad */ -// (*errorCallback->env)->CallVoidMethod(errorCallback->env, errorCallback->obj, mid, (jint) type); + if (errorCallback == NULL) { + return; + } + + JNIEnv * env = errorCallback->env; + jobject obj = errorCallback->obj; + + jclass cls = (jclass) env->GetObjectClass(obj); + + jmethodID mid = env->GetMethodID(cls, + errorCallback->method.c_str(), + "(I)V"); + + if (mid == 0) { + return; + } + /* Hopefully this will end up calling the java method for handling GLU_ERROR for this quad */ + env->CallVoidMethod(obj, mid, (jint) type); } Index: GLUQuadricCallbacks.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- GLUQuadricCallbacks.h 30 Nov 2002 00:19:59 -0000 1.2 +++ GLUQuadricCallbacks.h 30 Nov 2002 03:28:30 -0000 1.3 @@ -14,26 +14,24 @@ #include <stdio.h> #include "JavaMethod.h" -#include "CallbackContainer.h" #ifndef CALLBACK #define CALLBACK #endif -class GLUQuadricCallbacks : public CallbackContainer { +class GLUQuadricCallbacks { public: - GLUQuadricCallbacks(GLUquadricObj *quad); + GLUQuadricCallbacks(); ~GLUQuadricCallbacks(); - void add(JavaMethod*, GLenum); - void CALLBACK gluError(GLenum); + static void CALLBACK gluError(GLenum); + static void set(jint, JavaMethod*, jint); + static void clear(); protected: private: - JavaMethod* errorCallback; - GLUquadricObj* quadric; + static JavaMethod* errorCallback; }; - #endif /* _GLUQuadricCallbacks_H */ Index: JavaMethod.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- JavaMethod.h 30 Nov 2002 00:19:59 -0000 1.2 +++ JavaMethod.h 30 Nov 2002 03:28:30 -0000 1.3 @@ -12,12 +12,20 @@ class JavaMethod { public: - JavaMethod(JNIEnv *, jobject, std::string); - ~JavaMethod(); + JavaMethod(JNIEnv *newEnv, jobject newObj, std::string newMethod) + { + env = newEnv; + obj = newObj; + method = newMethod; + } + ~JavaMethod() + { - JNIEnv* env; - jobject obj; - std::string method; + } + + JNIEnv* env; + jobject obj; + std::string method; protected: private: Index: Makefile.am CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/Makefile.am =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 30 Nov 2002 00:19:59 -0000 1.1 +++ Makefile.am 30 Nov 2002 03:28:30 -0000 1.2 @@ -6,11 +6,6 @@ INCLUDES = -I../ COMMON = \ - CallbackContainer.cpp \ - CallbackContainer.h \ - CallbackManager.cpp \ - CallbackManager.h \ - JavaMethod.cpp \ JavaMethod.h CALLBACKS = \ Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- README.txt 30 Nov 2002 00:19:59 -0000 1.7 +++ README.txt 30 Nov 2002 03:28:30 -0000 1.8 @@ -1,45 +1,62 @@ This is just the start of my callback implementation. -Basically... we have 3 main classes... +Unfortunatly, you cant pass a non static method as an object pointer... +So we can only have callbacks for a single GLU object. However, +according to the OpenGL redbook... this should not be an issue. For example +the redbook states that, a single tess object should be used for an +entire program... and reused for each tessleation. -CallbackManager, which maintains a mapping of objects to callback containers -CallbackContainer, the base class which we extend to implement callbacks for specific objects -JavaMethod, which is a data object that contains information on the method to call. +The implementation: -GLUQuadricCallbacks is a CallbackContainer for working with quadric callbacks -eventually you can expect containers to callbacks for glu nurbs and glu tesselators. +JavaMethod: a data object that contains information on the method to call. + +GLUQuadricCallbacks: a class for working with quadric callbacks + +eventually you can expect callbacks for glu nurbs and glu tesselators. Of course callbacks for other object types should be easy to do using this framework. -Eventually... to add a callback you would do things like: +Note quite as elegent as I wanted, but it works. -/* quad is the reference to our GLUquadricObj - * type is one of the error types specified by gluQuadricCallback - * method is the name of the java method to call */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback - (JNIEnv * env, jobject obj, jint quad, jint type, jint method) { - /* if this quad has no callback container, make one */ - if (CallbackManager.get(quad) == null) { - CallbackManager.put(quad, new GLUQuadricCallbacks((GLUquadricObj *) quad); - } +You would write a callback like this: - /* get the callback container for this quad */ - ((GLUQuadricCallbacks *) CallbackManager.get(quad))->add(new JavaMethod(env, obj, (char*) method), (GLenum) type); +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_String_2 + (JNIEnv * env, jobject obj, jint quad, jint type, jstring method) +{ + GLUQuadricCallbacks::set(quad, + new JavaMethod(env, obj, env->GetStringUTFChars(method, 0)), + type); + CHECK_GL_ERROR } -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_deleteQuadric - (JNIEnv * env, jobject obj, jint quad) { - /* Delete the quadric from memory */ - gluDeleteQuadric((GLUquadricObj *) quad); - - /* delete any callbacks we assigned to the quadric */ - CallbackManager.del(quad); +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/Object;Ljava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_Object_2Ljava_lang_String_2 + (JNIEnv * env, jobject obj, jint quad, jint type, jobject target, jstring method) +{ + GLUQuadricCallbacks::set(quad, + new JavaMethod(env, target, env->GetStringUTFChars(method, 0)), + type); + CHECK_GL_ERROR } -then from java: +and call it from java: /* myquadric is a reference to a GLUquadricObj returned by glu.newQuadric() * GLU.ERROR is the callback type * errorCallback is the method you wish to be called */ glu.quadricCallback(myquadric, GLU.ERROR, "errorCallback"); + +or + +glu.quadricCallback(myquadric, GLU.ERROR, someObject, "errorCallback"); + --- CallbackContainer.cpp DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackContainer.cpp --- CallbackContainer.h DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackContainer.h --- CallbackManager.cpp DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.cpp --- CallbackManager.h DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.h |
From: Luke H. <lh...@us...> - 2002-11-30 03:28:32
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv13660/native Modified Files: acinclude.m4 aclocal.m4 Log Message: GLU: added quadricCallback(...) methods GLUQuadricCallbacks: Should now be fully implemented removed files: See the README.txt file for more information. Index: acinclude.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/acinclude.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/acinclude.m4,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- acinclude.m4 30 Nov 2002 00:19:58 -0000 1.3 +++ acinclude.m4 30 Nov 2002 03:28:29 -0000 1.4 @@ -46,6 +46,54 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -3602,6 +3650,10 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) + + + + Index: aclocal.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/aclocal.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/aclocal.m4,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- aclocal.m4 30 Nov 2002 00:19:59 -0000 1.4 +++ aclocal.m4 30 Nov 2002 03:28:30 -0000 1.5 @@ -58,6 +58,54 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -3614,6 +3662,10 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) + + + + |
From: Luke H. <lh...@us...> - 2002-11-30 03:28:32
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv13660/native/common Modified Files: org_lwjgl_opengl_GLU.cpp org_lwjgl_opengl_GLU.h Log Message: GLU: added quadricCallback(...) methods GLUQuadricCallbacks: Should now be fully implemented removed files: See the README.txt file for more information. Index: org_lwjgl_opengl_GLU.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GLU.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GLU.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_opengl_GLU.cpp 27 Nov 2002 05:54:27 -0000 1.2 +++ org_lwjgl_opengl_GLU.cpp 30 Nov 2002 03:28:30 -0000 1.3 @@ -48,6 +48,8 @@ #include "checkGLerror.h" #include "GL/glu.h" +#include "callbacks/GLUQuadricCallbacks.h" + /* * Class: org_lwjgl_opengl_GLU * Method: getString @@ -272,6 +274,34 @@ (JNIEnv * env, jobject obj, jint quad, jdouble radius, jint slices, jint stacks) { gluSphere((GLUquadricObj *) quad, (GLdouble) radius, (GLint) slices, (GLint) stacks); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_String_2 + (JNIEnv * env, jobject obj, jint quad, jint type, jstring method) +{ + GLUQuadricCallbacks::set(quad, + new JavaMethod(env, obj, env->GetStringUTFChars(method, 0)), + type); + CHECK_GL_ERROR +} + +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/Object;Ljava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_Object_2Ljava_lang_String_2 + (JNIEnv * env, jobject obj, jint quad, jint type, jobject target, jstring method) +{ + GLUQuadricCallbacks::set(quad, + new JavaMethod(env, target, env->GetStringUTFChars(method, 0)), + type); CHECK_GL_ERROR } Index: org_lwjgl_opengl_GLU.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GLU.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GLU.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- org_lwjgl_opengl_GLU.h 27 Nov 2002 06:28:02 -0000 1.4 +++ org_lwjgl_opengl_GLU.h 30 Nov 2002 03:28:30 -0000 1.5 @@ -175,6 +175,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_sphere (JNIEnv *, jobject, jint, jdouble, jint, jint); +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_String_2 + (JNIEnv *, jobject, jint, jint, jstring); + +/* + * Class: org_lwjgl_opengl_GLU + * Method: quadricCallback + * Signature: (IILjava/lang/Object;Ljava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback__IILjava_lang_Object_2Ljava_lang_String_2 + (JNIEnv *, jobject, jint, jint, jobject, jstring); + #ifdef __cplusplus } #endif |
From: Luke H. <lh...@us...> - 2002-11-30 03:28:32
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv13660/java/org/lwjgl/opengl Modified Files: GLU.java Log Message: GLU: added quadricCallback(...) methods GLUQuadricCallbacks: Should now be fully implemented removed files: See the README.txt file for more information. Index: GLU.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLU.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GLU.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- GLU.java 27 Nov 2002 05:54:27 -0000 1.6 +++ GLU.java 30 Nov 2002 03:28:29 -0000 1.7 @@ -353,4 +353,18 @@ int slices, int stacks ); + + + public native void quadricCallback( + int target, + int type, + String method + ); + public native void quadricCallback( + int target, + int type, + Object obj, + String method + ); + } |
From: Luke H. <lh...@us...> - 2002-11-30 00:20:03
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv26599 Modified Files: acinclude.m4 aclocal.m4 configure.in Log Message: the callback classes now compile and link with the library. However it still is not usable =/ Index: acinclude.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/acinclude.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/acinclude.m4,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- acinclude.m4 29 Nov 2002 08:29:53 -0000 1.2 +++ acinclude.m4 30 Nov 2002 00:19:58 -0000 1.3 @@ -46,498 +46,6 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -653,8 +161,6 @@ done<<>>dnl>>) changequote([,]))]) - - # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- # serial 46 AC_PROG_LIBTOOL @@ -4096,45 +3602,6 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: aclocal.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/aclocal.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/aclocal.m4,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- aclocal.m4 29 Nov 2002 08:33:36 -0000 1.3 +++ aclocal.m4 30 Nov 2002 00:19:59 -0000 1.4 @@ -10,6 +10,54 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -3566,4 +3614,8 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) + + + + Index: configure.in CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/configure.in =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/configure.in,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- configure.in 29 Nov 2002 08:29:53 -0000 1.3 +++ configure.in 30 Nov 2002 00:19:59 -0000 1.4 @@ -77,4 +77,4 @@ dnl Checks for library functions. -AC_OUTPUT([Makefile common/Makefile linux/Makefile]) +AC_OUTPUT([Makefile common/Makefile common/callbacks/Makefile linux/Makefile]) |
From: Luke H. <lh...@us...> - 2002-11-30 00:20:02
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv26599/common/callbacks Modified Files: CallbackManager.cpp CallbackManager.h GLUQuadricCallbacks.cpp GLUQuadricCallbacks.h JavaMethod.cpp JavaMethod.h README.txt Added Files: Makefile.am Log Message: the callback classes now compile and link with the library. However it still is not usable =/ --- NEW FILE: Makefile.am --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/Makefile.am noinst_LTLIBRARIES = libcallbacks.la libcallbacks_la_SOURCES = $(COMMON) $(CALLBACKS) libcallbacks_la_CPPFLAGS = -D_DEBUG INCLUDES = -I../ COMMON = \ CallbackContainer.cpp \ CallbackContainer.h \ CallbackManager.cpp \ CallbackManager.h \ JavaMethod.cpp \ JavaMethod.h CALLBACKS = \ GLUQuadricCallbacks.cpp \ GLUQuadricCallbacks.h Index: CallbackManager.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CallbackManager.cpp 29 Nov 2002 06:06:16 -0000 1.1 +++ CallbackManager.cpp 30 Nov 2002 00:19:59 -0000 1.2 @@ -19,5 +19,28 @@ // CallbackManager::~CallbackManager() { + data.clear(); +} + +bool CallbackManager::add(jint key, CallbackContainer *value) +{ + data[key] = value; } +bool CallbackManager::del(jint key) +{ + if (data.find(key) != data.end()) { + delete data[key]; + data.erase(key); + } +} + +CallbackContainer * CallbackManager::get(jint key) +{ + if (data.find(key) == data.end()) { + return NULL; + } + else { + return data[key]; + } +} Index: CallbackManager.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CallbackManager.h 29 Nov 2002 06:06:16 -0000 1.1 +++ CallbackManager.h 30 Nov 2002 00:19:59 -0000 1.2 @@ -10,18 +10,20 @@ #include <map> #include <jni.h> +#include "CallbackContainer.h" + class CallbackManager { public: CallbackManager(); ~CallbackManager(); - static bool add(jint, CallbackContainer); - static bool del(jint); - static CallbackContainer get(jint); + bool add(jint, CallbackContainer*); + bool del(jint); + CallbackContainer* get(jint); protected: private: - static map<jint, CallbackContainer> data; + std::map<jint, CallbackContainer*> data; }; #endif /* _CallbackManager_H */ Index: GLUQuadricCallbacks.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLUQuadricCallbacks.cpp 29 Nov 2002 06:06:16 -0000 1.1 +++ GLUQuadricCallbacks.cpp 30 Nov 2002 00:19:59 -0000 1.2 @@ -5,7 +5,7 @@ // Created on November 28, 2002, 8:21 PM // -#include "GLUQuadricCallback.h" +#include "GLUQuadricCallbacks.h" // // Constructor @@ -25,29 +25,35 @@ if (errorCallback != NULL) { delete errorCallback; } - delete quad; } +typedef void (GLAPIENTRY *callback_t)(); + + +/* having a couple issues. I cant use a pointer to a method as a function pointer? */ + void GLUQuadricCallbacks::add(JavaMethod *cb, GLenum type) { /* If we are already refering to a callback, get rid of it */ - if (gluError != NULL) { + if (errorCallback != NULL) { delete errorCallback; } + switch (type) { - case GLU_ERROR; + case GLU_ERROR: errorCallback = cb; - gluQuadricCallback(quad, type, *gluError) +// gluQuadricCallback(quadric, type, (callback_t) this->gluError); break; - }; + } } -void GLUQuadricCallbacks::gluError(GLenum type) { - jclass cls = (*errorCallback->env)->GetObjectClass(errorCallback->env, errorCallback.obj); - jmethodID mid = (*errorCallback->env)->getMethodID(errorCallback->env, cls, errorCallback.method.c_str()); - if (mid == 0) { - return; - } - /* Hopefully this will end up calling the java method for handling GLU_ERROR for this quad */ - (*errorCallback->env)->CallVoidMethod(errorCallback->env, errorCallback.obj, mid, (jint) type); -} \ No newline at end of file +void CALLBACK GLUQuadricCallbacks::gluError(GLenum type) { + +// jclass cls = (*errorCallback->env)->GetObjectClass(errorCallback->env, errorCallback->obj); +// jmethodID mid = (*errorCallback->env)->getMethodID(errorCallback->env, cls, errorCallback->method.c_str()); +// if (mid == 0) { +// return; +// } +// /* Hopefully this will end up calling the java method for handling GLU_ERROR for this quad */ +// (*errorCallback->env)->CallVoidMethod(errorCallback->env, errorCallback->obj, mid, (jint) type); +} Index: GLUQuadricCallbacks.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- GLUQuadricCallbacks.h 29 Nov 2002 06:06:16 -0000 1.1 +++ GLUQuadricCallbacks.h 30 Nov 2002 00:19:59 -0000 1.2 @@ -1,28 +1,39 @@ // -// File: GLUQuadricCallback.h +// File: GLUQuadricCallbacks.h // Author: alterself // // Created on November 28, 2002, 8:21 PM // -#ifndef _GLUQuadricCallback_H -#define _GLUQuadricCallback_H +#ifndef _GLUQuadricCallbacks_H +#define _GLUQuadricCallbacks_H #include "extgl.h" +#include <GL/glu.h> +#include <stdlib.h> +#include <stdio.h> -class GLUQuadricCallbacks : public Callback { +#include "JavaMethod.h" +#include "CallbackContainer.h" + +#ifndef CALLBACK +#define CALLBACK +#endif + + +class GLUQuadricCallbacks : public CallbackContainer { public: - GLUQuadricCallback(jint quad); - ~GLUQuadricCallback(); + GLUQuadricCallbacks(GLUquadricObj *quad); + ~GLUQuadricCallbacks(); void add(JavaMethod*, GLenum); - void gluError(GLenum); + void CALLBACK gluError(GLenum); protected: private: - GLUquadricObj *quadric; - JavaMethod *errorCallback; + JavaMethod* errorCallback; + GLUquadricObj* quadric; }; -#endif /* _GLUQuadricCallback_H */ +#endif /* _GLUQuadricCallbacks_H */ Index: JavaMethod.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- JavaMethod.cpp 29 Nov 2002 06:06:16 -0000 1.1 +++ JavaMethod.cpp 30 Nov 2002 00:19:59 -0000 1.2 @@ -5,12 +5,12 @@ // Created on November 28, 2002, 3:37 PM // -#include "Callback.h" +#include "JavaMethod.h" // // Constructor /// -JavaMethod::JavaMethod(JNIEnv *newEnv, jobject newObj, string newMethod) +JavaMethod::JavaMethod(JNIEnv *newEnv, jobject newObj, std::string newMethod) { env = newEnv; obj = newObj; @@ -22,6 +22,5 @@ // JavaMethod::~JavaMethod() { - delete(method); } Index: JavaMethod.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- JavaMethod.h 29 Nov 2002 06:06:16 -0000 1.1 +++ JavaMethod.h 30 Nov 2002 00:19:59 -0000 1.2 @@ -8,20 +8,19 @@ #ifndef _JavaMethod_H #define _JavaMethod_H #include <string> - +#include <jni.h> class JavaMethod { public: - JavaMethod(JNIEnv *, jobject, string); + JavaMethod(JNIEnv *, jobject, std::string); ~JavaMethod(); - + + JNIEnv* env; + jobject obj; + std::string method; protected: private: - JNIEnv* env; - jobject obj; - string method; - }; #endif /* _JavaMethod_H */ Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- README.txt 29 Nov 2002 09:19:39 -0000 1.6 +++ README.txt 30 Nov 2002 00:19:59 -0000 1.7 @@ -1,7 +1,5 @@ This is just the start of my callback implementation. -As it is, it wont compile =) - Basically... we have 3 main classes... CallbackManager, which maintains a mapping of objects to callback containers |
From: Luke H. <lh...@us...> - 2002-11-30 00:20:02
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv26599/common Modified Files: Makefile.am Log Message: the callback classes now compile and link with the library. However it still is not usable =/ Index: Makefile.am CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/Makefile.am =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 29 Nov 2002 06:06:16 -0000 1.2 +++ Makefile.am 30 Nov 2002 00:19:59 -0000 1.3 @@ -1,7 +1,14 @@ +SUBDIRS = callbacks + noinst_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = $(COMMON) libcommon_la_CPPFLAGS = -D_DEBUG + +libcommon_la_LIBADD = \ + callbacks/libcallbacks.la +libcommon_la_DEPENDENCIES = \ + callbacks/libcallbacks.la COMMON = \ extal.c \ |
From: Elias N. <eli...@us...> - 2002-11-29 11:51:16
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv17603 Modified Files: org_lwjgl_input_Mouse.cpp Log Message: Reverted Luke's XWarpPointer change 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.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- org_lwjgl_input_Mouse.cpp 29 Nov 2002 08:29:53 -0000 1.7 +++ org_lwjgl_input_Mouse.cpp 29 Nov 2002 11:51:10 -0000 1.8 @@ -132,7 +132,6 @@ int result; int mask = EnterWindowMask | LeaveWindowMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask; if (current_fullscreen) { - XWarpPointer(disp, None, win, 0, 0, 0, 0, 0, 0); result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, win, blank_cursor, CurrentTime); XF86VidModeSetViewPort(disp, screen, 0, 0); // make sure we have a centered window } else @@ -340,4 +339,4 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nEnableBuffer (JNIEnv * env, jclass clazz) { printf("*** FIXME: nEnableBuffer not implemented!\n*"); -} \ No newline at end of file +} |
From: Luke H. <lh...@us...> - 2002-11-29 09:19:42
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv3733 Modified Files: README.txt Log Message: added an example on how to use the callback from java Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- README.txt 29 Nov 2002 08:53:08 -0000 1.5 +++ README.txt 29 Nov 2002 09:19:39 -0000 1.6 @@ -37,3 +37,11 @@ /* delete any callbacks we assigned to the quadric */ CallbackManager.del(quad); } + + +then from java: + +/* myquadric is a reference to a GLUquadricObj returned by glu.newQuadric() + * GLU.ERROR is the callback type + * errorCallback is the method you wish to be called */ +glu.quadricCallback(myquadric, GLU.ERROR, "errorCallback"); |
From: Luke H. <lh...@us...> - 2002-11-29 08:53:11
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv17592 Modified Files: README.txt Log Message: Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- README.txt 29 Nov 2002 08:51:08 -0000 1.4 +++ README.txt 29 Nov 2002 08:53:08 -0000 1.5 @@ -26,7 +26,7 @@ } /* get the callback container for this quad */ - ((GLUQuadricCallbacks) CallbackManager.get(quad))->add(new JavaMethod(env, obj, (char*) method), (GLenum) type); + ((GLUQuadricCallbacks *) CallbackManager.get(quad))->add(new JavaMethod(env, obj, (char*) method), (GLenum) type); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_deleteQuadric |
From: Luke H. <lh...@us...> - 2002-11-29 08:51:11
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv16007 Modified Files: README.txt Log Message: added a cast to the example Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- README.txt 29 Nov 2002 08:49:29 -0000 1.3 +++ README.txt 29 Nov 2002 08:51:08 -0000 1.4 @@ -26,7 +26,7 @@ } /* get the callback container for this quad */ - CallbackManager.get(quad)->add(new JavaMethod(env, obj, (char*)method), (GLenum) type); + ((GLUQuadricCallbacks) CallbackManager.get(quad))->add(new JavaMethod(env, obj, (char*) method), (GLenum) type); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_deleteQuadric |
From: Luke H. <lh...@us...> - 2002-11-29 08:49:31
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv14998 Modified Files: README.txt Log Message: Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- README.txt 29 Nov 2002 08:48:32 -0000 1.2 +++ README.txt 29 Nov 2002 08:49:29 -0000 1.3 @@ -6,7 +6,7 @@ CallbackManager, which maintains a mapping of objects to callback containers CallbackContainer, the base class which we extend to implement callbacks for specific objects -JavaMethod, which is a data object that contains information on method the method to call back too. +JavaMethod, which is a data object that contains information on the method to call. GLUQuadricCallbacks is a CallbackContainer for working with quadric callbacks eventually you can expect containers to callbacks for glu nurbs and glu tesselators. |
From: Luke H. <lh...@us...> - 2002-11-29 08:48:35
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv14088 Modified Files: README.txt Log Message: fixed the grammer a little, along with a small bug =) Index: README.txt CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks/README.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- README.txt 29 Nov 2002 06:06:16 -0000 1.1 +++ README.txt 29 Nov 2002 08:48:32 -0000 1.2 @@ -6,7 +6,7 @@ CallbackManager, which maintains a mapping of objects to callback containers CallbackContainer, the base class which we extend to implement callbacks for specific objects -JavaMethod, which is a data object which contains information on which method to call from where +JavaMethod, which is a data object that contains information on method the method to call back too. GLUQuadricCallbacks is a CallbackContainer for working with quadric callbacks eventually you can expect containers to callbacks for glu nurbs and glu tesselators. @@ -21,7 +21,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback (JNIEnv * env, jobject obj, jint quad, jint type, jint method) { /* if this quad has no callback container, make one */ - if (CallbackManager.get(quad == NULL) { + if (CallbackManager.get(quad) == null) { CallbackManager.put(quad, new GLUQuadricCallbacks((GLUquadricObj *) quad); } @@ -36,4 +36,4 @@ /* delete any callbacks we assigned to the quadric */ CallbackManager.del(quad); -} \ No newline at end of file +} |
From: Luke H. <lh...@us...> - 2002-11-29 08:33:39
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv3430 Modified Files: aclocal.m4 Added Files: dummy.cpp Removed Files: dummy.c Log Message: --- NEW FILE: dummy.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/dummy.cpp /* This is needed for automake, so that it can build an empty archive */ int pointless_symbol_so_the_archive_doesnt_look_empty; Index: aclocal.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/aclocal.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/aclocal.m4,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- aclocal.m4 29 Nov 2002 08:29:53 -0000 1.2 +++ aclocal.m4 29 Nov 2002 08:33:36 -0000 1.3 @@ -10,546 +10,6 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - -dnl aclocal.m4 generated automatically by aclocal 1.4-p5 - -dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl This program is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A -dnl PARTICULAR PURPOSE. - # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -665,8 +125,6 @@ done<<>>dnl>>) changequote([,]))]) - - # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- # serial 46 AC_PROG_LIBTOOL @@ -4108,47 +3566,4 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --- dummy.c DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/dummy.c |
From: Luke H. <lh...@us...> - 2002-11-29 08:29:57
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv29612/src/native/linux Modified Files: org_lwjgl_input_Mouse.cpp Log Message: BaseWindow: We are now grabbing the mouse. Doing this because on linux, you need to grab and move the pointer or else you can scroll away from your full screen program. org_lwjgl_input_Mouse.cpp: When in full screen, the pointer should warp to the corner of the display. This fixes a few issues. Also added a stub for nEnableBuffer, with a fixme message. This function does not seem to be implemented in either the linux or win32 source... but exists in the java Mouse class. The stub keeps programs from crashing. ltmain.sh: Fixed a bug in libtool, where it uses gcc vs c++ for linking librarys built in c++. This fixes a missing symbol issue. configure.in: Made a few small changes. 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.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- org_lwjgl_input_Mouse.cpp 28 Nov 2002 21:49:11 -0000 1.6 +++ org_lwjgl_input_Mouse.cpp 29 Nov 2002 08:29:53 -0000 1.7 @@ -132,6 +132,7 @@ int result; int mask = EnterWindowMask | LeaveWindowMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask; if (current_fullscreen) { + XWarpPointer(disp, None, win, 0, 0, 0, 0, 0, 0); result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, win, blank_cursor, CurrentTime); XF86VidModeSetViewPort(disp, screen, 0, 0); // make sure we have a centered window } else @@ -329,3 +330,14 @@ if (current_fullscreen) warpPointer(); } + + +/* + * Class: org_lwjgl_input_Mouse + * Method: nEnableBuffer + * Signature: ()I + */ +JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nEnableBuffer + (JNIEnv * env, jclass clazz) { + printf("*** FIXME: nEnableBuffer not implemented!\n*"); +} \ No newline at end of file |
From: Luke H. <lh...@us...> - 2002-11-29 08:29:57
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/admin In directory sc8-pr-cvs1:/tmp/cvs-serv29612/src/native/admin Modified Files: ltmain.sh Log Message: BaseWindow: We are now grabbing the mouse. Doing this because on linux, you need to grab and move the pointer or else you can scroll away from your full screen program. org_lwjgl_input_Mouse.cpp: When in full screen, the pointer should warp to the corner of the display. This fixes a few issues. Also added a stub for nEnableBuffer, with a fixme message. This function does not seem to be implemented in either the linux or win32 source... but exists in the java Mouse class. The stub keeps programs from crashing. ltmain.sh: Fixed a bug in libtool, where it uses gcc vs c++ for linking librarys built in c++. This fixes a missing symbol issue. configure.in: Made a few small changes. Index: ltmain.sh CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/admin/ltmain.sh =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/admin/ltmain.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ltmain.sh 28 Nov 2002 22:40:05 -0000 1.1 +++ ltmain.sh 29 Nov 2002 08:29:53 -0000 1.2 @@ -204,6 +204,17 @@ exit 1 fi +# Mandrake: (gc) It's bad to link C++ code with GCC, so we need to use the compiler name if provided +if test "$mode" = link && test -n "$archive_cmds" && test -x "/usr/bin/perl"; then + case $nonopt in + *cc | *++ | gcc* | *-gcc* | egcs*) + archive_cmds=`echo $archive_cmds | perl -pe 's/^\S+\s+//'` + archive_cmds="$nonopt $archive_cmds" + archive_expsym_cmds=`echo $archive_expsym_cmds | perl -pe 's/^\S+\s+//'` + archive_expsym_cmds="$nonopt $archive_expsym_cmds" + esac +fi + # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. @@ -1585,8 +1596,6 @@ convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= - # PKGW - dependency_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then @@ -1704,8 +1713,6 @@ fi tmp_libs= - #PKGW - dependency_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test |
From: Luke H. <lh...@us...> - 2002-11-29 08:29:57
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv29612/src/native Modified Files: Makefile.am acinclude.m4 aclocal.m4 autogen.sh configure.in Log Message: BaseWindow: We are now grabbing the mouse. Doing this because on linux, you need to grab and move the pointer or else you can scroll away from your full screen program. org_lwjgl_input_Mouse.cpp: When in full screen, the pointer should warp to the corner of the display. This fixes a few issues. Also added a stub for nEnableBuffer, with a fixme message. This function does not seem to be implemented in either the linux or win32 source... but exists in the java Mouse class. The stub keeps programs from crashing. ltmain.sh: Fixed a bug in libtool, where it uses gcc vs c++ for linking librarys built in c++. This fixes a missing symbol issue. configure.in: Made a few small changes. Index: Makefile.am CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/Makefile.am =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 28 Nov 2002 22:40:05 -0000 1.1 +++ Makefile.am 29 Nov 2002 08:29:53 -0000 1.2 @@ -2,12 +2,11 @@ lib_LTLIBRARIES = liblwjgl.la - #liblwjgl_la_LDFLAGS = \ # -release $(LT_RELEASE) \ # -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) liblwjgl_la_SOURCES = \ - dummy.c + dummy.cpp liblwjgl_la_CPPFLAGS = -D_DEBUG liblwjgl_la_LIBADD = \ common/libcommon.la \ Index: acinclude.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/acinclude.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/acinclude.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- acinclude.m4 28 Nov 2002 22:40:05 -0000 1.1 +++ acinclude.m4 29 Nov 2002 08:29:53 -0000 1.2 @@ -430,6 +430,114 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -3988,6 +4096,15 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) + + + + + + + + + Index: aclocal.m4 CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/aclocal.m4 =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/aclocal.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- aclocal.m4 28 Nov 2002 22:40:05 -0000 1.1 +++ aclocal.m4 29 Nov 2002 08:29:53 -0000 1.2 @@ -442,6 +442,114 @@ dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A dnl PARTICULAR PURPOSE. +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl aclocal.m4 generated automatically by aclocal 1.4-p5 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + # Do all the work for Automake. This macro actually does too much -- # some checks are only needed if your package does certain things. # But this isn't really a big deal. @@ -4000,6 +4108,15 @@ # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) + + + + + + + + + Index: autogen.sh CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/autogen.sh =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/autogen.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- autogen.sh 28 Nov 2002 22:40:05 -0000 1.1 +++ autogen.sh 29 Nov 2002 08:29:53 -0000 1.2 @@ -1,5 +1,5 @@ -WANT_AUTOCONF_2_5=1 -WANT_AUTOMAKE_1_5=1 +#export WANT_AUTOCONF_2_5=1 +#WANT_AUTOMAKE_1_5=1 autoheader linux mv aclocal.m4 acinclude.m4 Index: configure.in CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/configure.in =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/configure.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- configure.in 28 Nov 2002 22:44:39 -0000 1.2 +++ configure.in 29 Nov 2002 08:29:53 -0000 1.3 @@ -29,20 +29,21 @@ AC_CONFIG_AUX_DIR(admin) -AC_CONFIG_SRCDIR(common/org_lwjgl_opengl_CoreGL.cpp) +#AC_CONFIG_SRCDIR(common/org_lwjgl_opengl_CoreGL.cpp) AM_INIT_AUTOMAKE(lwjgl, $LWJGL_VERSION) AM_CONFIG_HEADER(config.h) dnl Checks for programs. +dnl AC_PROG_CC +AC_PROG_RANLIB AM_PROG_LIBTOOL AC_PROG_MAKE_SET -AC_PROG_CC AC_PROG_CPP AC_PROG_CXX -AC_PROG_RANLIB +AC_REQUIRE_CPP AC_MSG_CHECKING(for JAVA_HOME) if test "x$JAVA_HOME" = x; then @@ -56,11 +57,11 @@ dnl Checks for libraries. dnl Replace `main' with a function in -lGL: +LIBS='-L/usr/X11R6/lib' +AC_PATH_X AC_CHECK_LIB(GL, main,, AC_MSG_ERROR(GL is required)) dnl Replace `main' with a function in -lGLU: AC_CHECK_LIB(GLU, main,, AC_MSG_ERROR(GLU is required)) -LIBS='-L/usr/X11R6/lib' -AC_PATH_X dnl Replace `main' with a function in -lX11: AC_CHECK_LIB(X11, main,, AC_MSG_ERROR(X11 is required)) dnl Replace `main' with a function in -lXext: |
From: Luke H. <lh...@us...> - 2002-11-29 08:29:57
|
Update of /cvsroot/java-game-lib/LWJGL/examples In directory sc8-pr-cvs1:/tmp/cvs-serv29612/examples Modified Files: BaseWindow.java Log Message: BaseWindow: We are now grabbing the mouse. Doing this because on linux, you need to grab and move the pointer or else you can scroll away from your full screen program. org_lwjgl_input_Mouse.cpp: When in full screen, the pointer should warp to the corner of the display. This fixes a few issues. Also added a stub for nEnableBuffer, with a fixme message. This function does not seem to be implemented in either the linux or win32 source... but exists in the java Mouse class. The stub keeps programs from crashing. ltmain.sh: Fixed a bug in libtool, where it uses gcc vs c++ for linking librarys built in c++. This fixes a missing symbol issue. configure.in: Made a few small changes. Index: BaseWindow.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/examples/BaseWindow.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/examples/BaseWindow.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- BaseWindow.java 27 Nov 2002 00:16:34 -0000 1.1 +++ BaseWindow.java 29 Nov 2002 08:29:53 -0000 1.2 @@ -101,6 +101,7 @@ } protected void killGLWindow() { + Mouse.destroy(); Keyboard.destroy(); gl.destroy(); Display.destroy(); @@ -115,6 +116,8 @@ glu = new GLU(gl); Keyboard.create(); Keyboard.enableBuffer(); + Mouse.create(); + Mouse.enableBuffer(); resizeGLScene(Display.getWidth(), Display.getHeight()); |
From: Luke H. <lh...@us...> - 2002-11-29 06:06:19
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv485/callbacks Added Files: CallbackContainer.cpp CallbackContainer.h CallbackManager.cpp CallbackManager.h GLUQuadricCallbacks.cpp GLUQuadricCallbacks.h JavaMethod.cpp JavaMethod.h README.txt Log Message: callbacks: The start of my callback implementation. Makefile.am: small fix for the CPPFLAGS variable --- NEW FILE: CallbackContainer.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackContainer.cpp // // File: CallbackContainer.cc // Author: alterself // // Created on November 28, 2002, 8:42 PM // #include "CallbackContainer.h" // // Constructor /// CallbackContainer::CallbackContainer() { } // // Destructor // CallbackContainer::~CallbackContainer() { } --- NEW FILE: CallbackContainer.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackContainer.h // // File: CallbackContainer.h // Author: alterself // // Created on November 28, 2002, 8:42 PM // #ifndef _CallbackContainer_H #define _CallbackContainer_H class CallbackContainer { public: CallbackContainer(); ~CallbackContainer(); protected: private: }; #endif /* _CallbackContainer_H */ --- NEW FILE: CallbackManager.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.cpp // // File: CallbackManager.cc // Author: alterself // // Created on November 28, 2002, 3:15 PM // #include "CallbackManager.h" // // Constructor /// CallbackManager::CallbackManager() { } // // Destructor // CallbackManager::~CallbackManager() { } --- NEW FILE: CallbackManager.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/CallbackManager.h // // File: CallbackManager.h // Author: alterself // // Created on November 28, 2002, 3:15 PM // #ifndef _CallbackManager_H #define _CallbackManager_H #include <map> #include <jni.h> class CallbackManager { public: CallbackManager(); ~CallbackManager(); static bool add(jint, CallbackContainer); static bool del(jint); static CallbackContainer get(jint); protected: private: static map<jint, CallbackContainer> data; }; #endif /* _CallbackManager_H */ --- NEW FILE: GLUQuadricCallbacks.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.cpp // // File: GLUQuadricCallback.cc // Author: alterself // // Created on November 28, 2002, 8:21 PM // #include "GLUQuadricCallback.h" // // Constructor /// GLUQuadricCallbacks::GLUQuadricCallbacks(GLUquadricObj *quad): CallbackContainer() { quadric = quad; errorCallback = NULL; } // // Destructor // GLUQuadricCallbacks::~GLUQuadricCallbacks() { if (errorCallback != NULL) { delete errorCallback; } delete quad; } void GLUQuadricCallbacks::add(JavaMethod *cb, GLenum type) { /* If we are already refering to a callback, get rid of it */ if (gluError != NULL) { delete errorCallback; } switch (type) { case GLU_ERROR; errorCallback = cb; gluQuadricCallback(quad, type, *gluError) break; }; } void GLUQuadricCallbacks::gluError(GLenum type) { jclass cls = (*errorCallback->env)->GetObjectClass(errorCallback->env, errorCallback.obj); jmethodID mid = (*errorCallback->env)->getMethodID(errorCallback->env, cls, errorCallback.method.c_str()); if (mid == 0) { return; } /* Hopefully this will end up calling the java method for handling GLU_ERROR for this quad */ (*errorCallback->env)->CallVoidMethod(errorCallback->env, errorCallback.obj, mid, (jint) type); } --- NEW FILE: GLUQuadricCallbacks.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/GLUQuadricCallbacks.h // // File: GLUQuadricCallback.h // Author: alterself // // Created on November 28, 2002, 8:21 PM // #ifndef _GLUQuadricCallback_H #define _GLUQuadricCallback_H #include "extgl.h" class GLUQuadricCallbacks : public Callback { public: GLUQuadricCallback(jint quad); ~GLUQuadricCallback(); void add(JavaMethod*, GLenum); void gluError(GLenum); protected: private: GLUquadricObj *quadric; JavaMethod *errorCallback; }; #endif /* _GLUQuadricCallback_H */ --- NEW FILE: JavaMethod.cpp --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.cpp // // File: Callback.cc // Author: alterself // // Created on November 28, 2002, 3:37 PM // #include "Callback.h" // // Constructor /// JavaMethod::JavaMethod(JNIEnv *newEnv, jobject newObj, string newMethod) { env = newEnv; obj = newObj; method = newMethod; } // // Destructor // JavaMethod::~JavaMethod() { delete(method); } --- NEW FILE: JavaMethod.h --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/JavaMethod.h // // File: Callback.h // Author: alterself // // Created on November 28, 2002, 3:37 PM // #ifndef _JavaMethod_H #define _JavaMethod_H #include <string> class JavaMethod { public: JavaMethod(JNIEnv *, jobject, string); ~JavaMethod(); protected: private: JNIEnv* env; jobject obj; string method; }; #endif /* _JavaMethod_H */ --- NEW FILE: README.txt --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/callbacks/README.txt This is just the start of my callback implementation. As it is, it wont compile =) Basically... we have 3 main classes... CallbackManager, which maintains a mapping of objects to callback containers CallbackContainer, the base class which we extend to implement callbacks for specific objects JavaMethod, which is a data object which contains information on which method to call from where GLUQuadricCallbacks is a CallbackContainer for working with quadric callbacks eventually you can expect containers to callbacks for glu nurbs and glu tesselators. Of course callbacks for other object types should be easy to do using this framework. Eventually... to add a callback you would do things like: /* quad is the reference to our GLUquadricObj * type is one of the error types specified by gluQuadricCallback * method is the name of the java method to call */ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_quadricCallback (JNIEnv * env, jobject obj, jint quad, jint type, jint method) { /* if this quad has no callback container, make one */ if (CallbackManager.get(quad == NULL) { CallbackManager.put(quad, new GLUQuadricCallbacks((GLUquadricObj *) quad); } /* get the callback container for this quad */ CallbackManager.get(quad)->add(new JavaMethod(env, obj, (char*)method), (GLenum) type); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_deleteQuadric (JNIEnv * env, jobject obj, jint quad) { /* Delete the quadric from memory */ gluDeleteQuadric((GLUquadricObj *) quad); /* delete any callbacks we assigned to the quadric */ CallbackManager.del(quad); } |
From: Luke H. <lh...@us...> - 2002-11-29 06:06:19
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv485 Modified Files: Makefile.am Log Message: callbacks: The start of my callback implementation. Makefile.am: small fix for the CPPFLAGS variable Index: Makefile.am CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/Makefile.am =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 28 Nov 2002 22:40:06 -0000 1.1 +++ Makefile.am 29 Nov 2002 06:06:16 -0000 1.2 @@ -1,7 +1,7 @@ noinst_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = $(COMMON) -liblwjgl_la_CPPFLAGS = -D_DEBUG +libcommon_la_CPPFLAGS = -D_DEBUG COMMON = \ extal.c \ |
From: Luke H. <lh...@us...> - 2002-11-29 06:04:30
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks In directory sc8-pr-cvs1:/tmp/cvs-serv314/callbacks Log Message: Directory /cvsroot/java-game-lib/LWJGL/src/native/common/callbacks added to the repository |
From: Luke H. <lh...@us...> - 2002-11-28 22:44:42
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv26563 Modified Files: configure.in Log Message: small update for the X11 path Index: configure.in CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/configure.in =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/configure.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- configure.in 28 Nov 2002 22:40:05 -0000 1.1 +++ configure.in 28 Nov 2002 22:44:39 -0000 1.2 @@ -27,9 +27,6 @@ AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) - -LIBS='-L/usr/X11R6/lib' - AC_CONFIG_AUX_DIR(admin) AC_CONFIG_SRCDIR(common/org_lwjgl_opengl_CoreGL.cpp) @@ -62,6 +59,8 @@ AC_CHECK_LIB(GL, main,, AC_MSG_ERROR(GL is required)) dnl Replace `main' with a function in -lGLU: AC_CHECK_LIB(GLU, main,, AC_MSG_ERROR(GLU is required)) +LIBS='-L/usr/X11R6/lib' +AC_PATH_X dnl Replace `main' with a function in -lX11: AC_CHECK_LIB(X11, main,, AC_MSG_ERROR(X11 is required)) dnl Replace `main' with a function in -lXext: |