From: Kenneth B. R. <kbr...@al...> - 2002-01-30 16:42:46
|
> I wrote a simple memory management module that keeps track of the > alocated arrays, so they can be released at a later point. I've tested > this idea with the tesselation stuff, and it works fine. > I've made these changes to the C files in the CNativeCode directory, > which isn't ideal (should be autogenerated). Could someone explain to me > where I can put my implementations of the > Java_gl4java_GLUFunc14JauJNI_gluTessVertex__* functions, so they would > appear in the generated c files automatically. These files are built by C2J. Sven can answer this better, but you're going to have to add them to something like C2J/gl-manualCodedImplJNI.c. The important thing is to then exclude them from the autogeneration process. I'm not sure whether simply adding the prototype to gl-manualCoded.orig.h will cause C2J to ignore the function; see how glGetString is handled in the Mesa header files and in the C2J Makefile. |