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");
|