From 7334bcfb0ec1b21baa3e87f4f285381fac067474 Mon Sep 17 00:00:00 2001 From: Luke Holden Date: Fri, 29 Nov 2002 08:48:32 +0000 Subject: [PATCH] fixed the grammer a little, along with a small bug =) --- src/native/common/callbacks/README.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/native/common/callbacks/README.txt b/src/native/common/callbacks/README.txt index a7cff1e9..be1d4927 100644 --- a/src/native/common/callbacks/README.txt +++ b/src/native/common/callbacks/README.txt @@ -6,7 +6,7 @@ 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 +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 @@ Eventually... to add a callback you would do things like: 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 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GLU_deleteQuadric /* delete any callbacks we assigned to the quadric */ CallbackManager.del(quad); -} \ No newline at end of file +}