From: Sven G. <sgo...@ja...> - 2000-03-07 20:29:31
|
Dear GL4Java Users, I am sorry for your inconvinience ! There IS a bug in the WINDOWS version for SUN/Netscape JVM Only, while resizing the canvas/window ! The prototype in gl4java.GLContext is: private final native void gljResizeNative( boolean isOwnWindow, int disp, int thisWin, int width, int height ); The native implementation for Windows is: JNIEXPORT void JNICALL Java_gl4java_GLContext_gljResizeNative( JNIEnv *env, jobject obj, jint width, jint height) { } So the native functions could not be found in the native library ! I send you a temporaery java-bugfix for the !!!!! WINDOWS version for SUN/Netscape JVM ONLY !!!!, because I am at a customer and I do not have a Win32 compiler avaiable :-( Next weekend, I will release the bugfix (new Win32 library) on the website ! I only add the binaries gl4java/GLContext.class gl4java/GLContext$1.class gl4java/GLContext$2.class to the zip - archive ! Please patch the gl4java.jar files by yourself for this moment ! - OR do not RESIZE ! The source changes for gl4java/GLContext.java.skel: --------------------------------------------------------------------------- public final void gljResize(int width, int height) { if ( ! isInitialized || !glEnabled ) return; if ( useMSJDirect ) { try { Point p = _comp.getLocationOnScreen(); gl4java.system.GljMSJDirect.moveOGLWindowNative( windowHandle,p.x,p.y,width,height); } catch (Exception e) { } } else gljResizeNative( width,height); } private final native void gljResizeNative( int width, int height ); --------------------------------------------------------------------------- Please remind, that this patch works for the !!!!! WINDOWS version for SUN/Netscape JVM ONLY !!!! THANXS ! Happy hunting ! Yours, Sven Goethel -- mailto:sgo...@ja... www: http://www.jausoft.com voice: +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |