commit 65cd7d4be74539f7c6f5350ff38d02b44b5eb240 Author: Sven Gothel Date: Tue Mar 1 03:14:31 2011 +0100 Fix public javadoc (add all com.jogamp.* packages) commit e43064a2f8bf96588b8325fe5e64ca412d825cf8 Author: Sven Gothel Date: Tue Mar 1 03:05:52 2011 +0100 tests for native SWT commit c1e542ad0150e5327b1ed9d9980d4eeb81720cde Author: Sven Gothel Date: Tue Mar 1 03:05:12 2011 +0100 Tolerate pending/lazy native context creation at 1st makeCurrent (OSX). This allows SWT on OSX to work properly. commit 9d28b54913bc4a50d642a86614d0e69d6d3f3192 Author: Sven Gothel Date: Tue Mar 1 03:04:14 2011 +0100 JOGL OSX: Cleanup imports/override commit 40bc27c7199a747ff082b784b8e2871d36b763f5 Author: Sven Gothel Date: Tue Mar 1 02:11:59 2011 +0100 Fix TestSharedContextListAWT: Use in-thread simple frame construction, which somehow solves the problem on Windows having no height commit 83570ff52f67d8f0f7fe978e178bf7825041bee3 Author: Sven Gothel Date: Tue Mar 1 01:13:23 2011 +0100 SWTAccessor: Attempt to receive the OSX cocoa NSView handle/id commit 40b45c99ad455361f97a9b1f5dd5ba9e1e019aeb Author: Sven Gothel Date: Tue Mar 1 00:38:36 2011 +0100 Add junit.run.awt.singletest target for cmdline verification commit 3747f6a608a79152ddda51d984712e8ce8179f54 Author: Sven Gothel Date: Mon Feb 28 23:59:16 2011 +0100 Cleanup (private access for inner classes) Partially revert commit 5681c25cfd4c7abce7d653910c9aa7a4e989057e - revert all window feature (visible, fullscreen, ..) runOnEDT calls to wait:=true, it turns out we loose stability and predictable behavior otherwise. - a user must ensure no calling these modifier methods from a locked window state, as documented (and changed) in commit 481285c3d19d0a4c019cffc72b7a8b58296b748e commit 3169bfb049053220118e5cec904a1bfaa181c07d Author: Sven Gothel Date: Mon Feb 28 23:55:04 2011 +0100 Animator: Cleanup and better DEBUG info commit 481285c3d19d0a4c019cffc72b7a8b58296b748e Author: Sven Gothel Date: Mon Feb 28 23:54:33 2011 +0100 fix test - dont use GLAutoDrawable.invoke(boolean wait, GLRunnable glRunnable) for window locking calls, ie window changes. The GLRunnable list is executed while window is locked. commit a65516db85582ac3391b4a3d978ac07b9e1e6951 Author: Sven Gothel Date: Mon Feb 28 19:49:12 2011 +0100 unit tests: Gears, TestGearsNEWT, WindowImplAccess Gears (add cursor rotation) TestGearsNEWT (add decoraction toggle 'd') WindowImplAccess NEWT Closing tests .. programmatical close on EDT, which simulates 1:1 native closing operation. commit 5681c25cfd4c7abce7d653910c9aa7a4e989057e Author: Sven Gothel Date: Mon Feb 28 19:47:10 2011 +0100 NEWT WindowImpl EDT fixes - all features intended to run on EDT and lock the surface shall only allowed to wait for result, if the surface is unlocked. Otherwise don't wait - ie a pending operation. - proper sequence of all feature Runnables, ie include pre/post lock actions in Runnable, since it might be a pending task (see above). This shall avoid deadlocks cause by user code where features are called (visible, fullscreen, ..) when invoked within a locked surface code path - ie GLAutoDrawable.invoke(boolean wait, GLRunnable glRunnable). commit 30839d5a645d91ba6ea0b7f7f8150afac36bb215 Author: Sven Gothel Date: Mon Feb 28 19:37:52 2011 +0100 NEWT EDT: Fix dbl-chk-locking, runOnEDT fast-path, enqueEvent dispatch immed. if on EDT commit e0b2133b1dafef6750885d53fe85e2bc9530c2c9 Author: Sven Gothel Date: Mon Feb 28 06:48:10 2011 +0100 SWTAccessor: Fix type casting int/long - better long usage determination commit 4c1e6d1bda0b8c4a9517f751e428deda6847a72c Author: Sven Gothel Date: Mon Feb 28 05:44:28 2011 +0100 NEWT: enqueueEvent(wait, ..) can't wait if on EDT. Solves UI close, etc commit 2a68b716d8b288812cb701ce0af1bd59cee5cca2 Author: Sven Gothel Date: Mon Feb 28 05:27:24 2011 +0100 Remove TestSWT01GLn hacking, see TestSWT02GLn commit 10ea39d665f0cb50204d1965a0739ca15119e86f Author: Sven Gothel Date: Mon Feb 28 05:24:40 2011 +0100 SWT/JOGL: Native SWT binding test commit f9ae06b4df8daa5e780e392543cb06cb9a6293c9 Author: Sven Gothel Date: Mon Feb 28 05:23:43 2011 +0100 SWTAccessor: Add new SWT reflections for native window handle and display/device. Currently implemented platforms: X11(gdk/gtk) and Windows, both 32bit and 64bit. commit 254052b54cebdb957d83e46e377534ef263d6029 Author: Sven Gothel Date: Mon Feb 28 05:22:24 2011 +0100 JOGL GLDrawableFactory: Expose experimental method createProxySurface(..) for new windowing system ad-hoc development. WARNING: This method may change ro be removed over time! commit 3ee26cd01789d0169c5225b3a4e5229e4a1c6676 Author: Sven Gothel Date: Mon Feb 28 05:19:44 2011 +0100 X11Util DisplayName: Respect DEFAULT_CONNECTION string commit d91bcf32f2d2767f4a84d835b6af78ade42ea870 Author: Michael Bien Date: Mon Feb 28 03:07:14 2011 +0100 added GL reference pages crawler script for automatic native-taglet.properties generation. commit e5f0ee1e8969b9259f31b88f9ddd7165ab8ca5ae Author: Sven Gothel Date: Sat Feb 26 22:43:10 2011 +0100 Attempt to analyze failed AWT UI tests, where no paint is being issued to GLCanvas. commit 10c696f7e908ccbf150838f86b286b7c383058c6 Author: Sven Gothel Date: Sat Feb 26 22:41:04 2011 +0100 Code cleanup: override, imports, StringBuilder, .. commit 76444dce2b678a7f6769564abac4f8a73f414609 Author: Sven Gothel Date: Sat Feb 26 21:43:20 2011 +0100 Clean/Fix: Threading Code - Remove unsafe double checked locking - Annotate safe double checked locking (volatile) - use 'static final' if possible commit 77546f8968779fbdcfe58f89c6924803642889c7 Author: Michael Bien Date: Sat Feb 26 18:03:48 2011 +0100 changes due to code cleanup in gluegen. - StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes commit 112e2a26004d974c3bba822fe1467a34784ec57d Author: Sven Gothel Date: Sat Feb 26 07:35:24 2011 +0100 GLProfile: More Tolerant for missing features; MacOSX: Fix External Context / SWT; SWT Test: Distinguish awt/headless and main-thread (osx) swt launch commit 7f2079513b661c69b82f90770f4147530f8db8a2 Author: Sylvestre Ledru Date: Fri Feb 25 06:15:27 2011 +0100 Remove reference to the deprecated option noCDC (2) commit d37697ab758e10467d7021a707b7fe023c327c73 Author: Sven Gothel Date: Fri Feb 25 06:06:14 2011 +0100 Remove reference to the deprecated option noCDC (2) commit 079572c5d5999c410a827c7d178a19f88db18c9a Author: Sylvestre Ledru Date: Tue Feb 22 17:13:21 2011 +0100 Remove reference to the deprecated option noCDC commit 1f4171ef3019ce8de945129d74363def12e128a3 Author: Sven Gothel Date: Fri Feb 25 05:52:05 2011 +0100 Avoid NPE (pairs with 6188d6a385056adade49fcb6d8247f94f96d402e) commit c0dc6dd0571684e74b08ab28b5558df47e40ff7d Author: Andy Brown Date: Tue Feb 15 07:02:49 2011 +0800 Fix bug 473: Override on implementations with 1.5 Using @Override on implementations of interface methods wasn't introduced until Java 1.6. After changing the compliance level to 1.5 in Eclipse, it reports 23 errors. This fix comments out the annotations rather than deleting them altogether thinking it may be easier if JOGL ever targets 1.6 in the future. commit 6188d6a385056adade49fcb6d8247f94f96d402e Author: Sven Gothel Date: Fri Feb 25 04:37:58 2011 +0100 Avoid NPE, incr. test poll, .. commit 60bef22a93d3406b960f059299bd31c72dcad959 Author: Sven Gothel Date: Thu Feb 24 00:12:10 2011 +0100 gluegen-archivetasks.xml -> jogamp-archivetasks.xml commit 355161e55d024f0009efede647e5a72a61802f58 Author: Sven Gothel Date: Wed Feb 23 20:00:53 2011 +0100 Adapt changes of jogamp-env.xml commit 2ac4006de0af87a87bc4f37abb3ba763379da207 Author: Sven Gothel Date: Wed Feb 23 15:13:56 2011 +0100 Inverse build attribute build.noarchive -> build.archiveon commit ef0ee0c8fcb794d0c81e37eee87cb5c7b281fc7a Author: Sven Gothel Date: Wed Feb 23 04:58:38 2011 +0100 Using 7z instead of zip commit 8a34f083d78b61bf9cbebbd6c9a5ba3653e784aa Author: Sven Gothel Date: Wed Feb 23 02:47:33 2011 +0100 Use NODE_NAME env var to determine test archive commit f67effd5e00abec3e671e4bb97b0e2837398fcb3 Author: Sven Gothel Date: Tue Feb 22 17:19:37 2011 +0100 Excluded javadoc.dev from javadoc.all; Fixed javadoc.dev (incl jogamp.* packages) commit e587f2a724c79d50118f717cc29fba78cad0feeb Author: Sven Gothel Date: Tue Feb 22 14:21:29 2011 +0100 NativeWindow NativeSurface lock/unlock Surface cleanup ; NEWT WindowImpl lock/unlock Surface fix - Rename lock to surfaceLock to determine it's use - NEWT's WindowImpl windowLock usage is not sufficient for lock/unlock surface. Using distinguished surfaceLock for proper recursion count on lock/unlock surface. commit 1411387d54bc5d946bd3528f97c9a2a15dd2f9de Author: Sven Gothel Date: Tue Feb 22 09:49:07 2011 +0100 misc cleanup (import,script attributes) commit b6c02b25a28a430506e6e9ab2e19b7a967220427 Author: Sven Gothel Date: Tue Feb 22 09:48:37 2011 +0100 WindowsExternalWGLContext: Tolerate invalid/released hdc (swt, winxp-32bit) commit 4a43734dc09b56e418ca5036f54c856555ac2920 Author: Sven Gothel Date: Tue Feb 22 08:51:09 2011 +0100 NativeWindow/SWT: Rename SWTMisc -> SWTAccessor; Add to nativewindow.core.jar commit 8178e39d4a65f7cae779c7fde2fd846585aed201 Author: Sven Gothel Date: Tue Feb 22 07:47:53 2011 +0100 NativeWindow/SWT: Add SWTMisc utility allowing platform independent access commit b15eb3df080ed0d716237aa271221f8ed4b25d5e Author: Sven Gothel Date: Tue Feb 22 07:45:49 2011 +0100 JOGL/X11/AWT: No more need for seperate X11 Display instance if available commit 282b52c1daaef63d65b5c0f4a633061980f6a3f6 Author: Sven Gothel Date: Tue Feb 22 07:44:41 2011 +0100 Cleanup NEWT MainThread, using new AWTEDTUtil impl. / Sync AWTCanvas with GLCanvas changes Cleanup NEWT MainThread, using new AWTEDTUtil impl. - Allow simple singleton AWTEDTUtil to be used for AWTDisplay and more .. Sync AWTCanvas with GLCanvas changes - Latest GLCanvas changes around addNotify() had to be synced commit ab1d8180e3a20eeb11df48bed49ca5d28e34df4b Author: Sven Gothel Date: Tue Feb 22 07:41:52 2011 +0100 bump scripts to 6u24 commit bb3d3743b4800d006457c767a00436b9308da75d Author: Sven Gothel Date: Tue Feb 22 07:40:23 2011 +0100 NativeWindow ProxySurface Abstraction and lock/unlock Surface cleanup - ProxySurface -> abstract javax.media.nativewindow.ProxySurface, implemented by jogamp.nativewindow.WrappedSurface, just wrapping surface handle jogamp.nativewindow.windows.GDISurface, using HWND and get/release HDC on lock/unlock - Unifying NativeSurface's lockSurface/unlockSurface implementations - NEWT's WindowImpl - NativeWindow's ProxySurface, WrappedWindow, GDIWindow and JAWTWindow - wingdi/GDI: Add 'WindowFromDC' and 'GetClientRect' to GDI commit e5777ec9e6ea79e0aface29fa679ccea4035f0e2 Author: Wade Walker Date: Thu Feb 17 11:20:39 2011 -0600 Add new all.ide target for use in Eclipse, NetBeans, and IntelliJ The new target just omits final JAR creation and file copying for extra speed within an IDE. We also change where Eclipse looks for the native libraries, since this new target doesn't copy them to jogl/build/lib. commit 943313af19da04044dddda57cb6bc4bd399eb76e Author: Wade Walker Date: Thu Feb 17 09:29:40 2011 -0600 Prevent native libraries from always rebuilding and stripping The cc task will always re-link, even if no source files are built. This commit wraps an uptodate task around cc to prevent this, so the libraries will only be rebuilt now if a source file changes. This commit also moves library symbol stripping into the same uptodate task, so it only happens if a library is built (previously the libraries were always stripped). commit 9ddcdd544e08326facbc19419452bd2745352aef Author: Wade Walker Date: Wed Feb 16 14:56:53 2011 -0600 Fix path to FixedFuncHook.class. The path to FixedFuncHook.class didn't get changed in the recent package move, which made the dependency checking wrong in the java.generate.composable.pipeline.custom.check.glfixfunc target. commit 4bb89a99cabf28cd45343b102e22c756cfd87e9b Author: Wade Walker Date: Wed Feb 16 11:33:20 2011 -0600 Make Eclipse build correctly Removed the Java builder, since it was rebuilding stuff the Ant build had already done. Turned on the Ant build for incremental builds. Changed the classpath of com/jogamp/opengl/impl/gl2/fixme/ to jogamp/opengl/gl2/fixme/ to reflect the recent move. commit bff7e97c2f22673bb0457765696fb867d3e4f69d Author: Sven Gothel Date: Fri Feb 11 17:28:06 2011 +0100 Win,ARB,GL-2.x: Fix pfd to caps conversion: !pbuffer / Cleanup This fix enables the configuration win7 64bit chromium2.1 (virtual box 4.0.2 linux host) Querying unsupported pixel format attributes, ie pbuffer, will fail the ARB attribute query functions. Cleanup of SharedResource's, hold all reused flags in win32 impl, ie pbuffer, arb pixelformat, .. commit bf75331124d6d0c53b74d5235ec03f5fcbc55cba Author: Sven Gothel Date: Fri Feb 11 08:09:53 2011 +0100 Win,GDI,SWT: Fix pfd to caps conversion. Added thorough debug code. Debug code added for use case: WinXP-32bit, GDI, SWT, where WGL.wglGetCurrentDC() returns a non null value which is invalid. Using the value (hdc) on eg GDI.GetObjectType(hdc) return 0 instead of 3 (OBJ_DC) and GDI.GetPixelFormat(hdc) returns 0 with last error 2000. commit ffe215ecf60da12605b29f3fa1d08eafebcb415a Author: Sven Gothel Date: Thu Feb 10 12:54:07 2011 +0100 Fix Win/GDI: getAvailableGLCapabilitiesGDI() add offscreen GLCaps as well commit f69e77c6c7403bf823150b6b19346fcf77df31e2 Author: Sven Gothel Date: Thu Feb 10 01:21:18 2011 +0100 Spec Doc update/fix commit 209253c301a0afa13a9edb3d68adb67040a7e619 Author: Sven Gothel Date: Wed Feb 9 08:08:54 2011 +0100 Fix: Java 1.5 warnings commit a43a3ee9106431ac089eee31b500211f775e684b Author: Sven Gothel Date: Wed Feb 9 08:08:15 2011 +0100 Spec: Bump Java version to 1.5 commit e247b39fcf455a9599d759b31be3614eaf46452f Author: Sven Gothel Date: Wed Feb 9 07:04:11 2011 +0100 NB source level bump 1.5 commit 97631dca3c4d36496717438f12fae609e6bafc63 Author: Sven Gothel Date: Wed Feb 9 06:58:42 2011 +0100 Fix code style commit fbb775c52b210dd104d58f722c5d76bb570f1def Author: Sven Gothel Date: Wed Feb 9 06:30:52 2011 +0100 Remove CDC commit cee947c7c32fbf7175db7a080c76634056d982b2 Author: Sven Gothel Date: Wed Feb 9 05:02:51 2011 +0100 Expand tabs to 4 spaces commit ac03851ea77e02c36bdffab461e4a0d2a1971f2d Author: Wade Walker Date: Tue Feb 8 21:36:47 2011 -0600 Fix ClassCastException when debug logging enabled The debug logging code puts a null reference into a list, then tries to cast it to a WGLGLCapabilities object. commit 329ead69c579493b5bd06c44074040ebb383ebe5 Author: Wade Walker Date: Mon Feb 7 06:28:01 2011 +0800 Add classpath entry for SWT to Eclipse project This addition makes it possible to run the SWT unit tests from within Eclipse (once the user sets up the appropriate user library as explained in the wiki). commit 13095b364bc4ecd778a892e133d996a9063da838 Author: Sven Gothel Date: Wed Feb 9 04:00:26 2011 +0100 GLProfile: Sorting imports commit 360b6716f68b44b28fd8c4f8e61ab86d5a56738b Author: Sven Gothel Date: Wed Feb 9 02:50:09 2011 +0100 Move implementation private files from com.jogamp..impl. to jogamp. (2/2) - edit files - com.jogamp.opengl.impl -> jogamp.opengl - com.jogamp.opengl.util.glsl.fixedfunc.impl -> jogamp.opengl.util.glsl.fixedfunc - com.jogamp.nativewindow.impl -> jogamp.nativewindow - com.jogamp.newt.impl -> jogamp.newt This sorts implementation details from the top level, ie skipping the public 'com', allowing a better seperation of public classes and implementation details and also reduces strings. This approach of public/private seperation is also used in the OpenJDK. commit 4cda4b70dbcd21cf57e1e253ddba32b88bcaec18 Author: Sven Gothel Date: Tue Feb 8 06:20:35 2011 +0100 Move implementation private files from com.jogamp..impl. to jogamp. (1/2) - rename task - com.jogamp.opengl.impl -> jogamp.opengl - com.jogamp.opengl.util.glsl.fixedfunc.impl -> jogamp.opengl.util.glsl.fixedfunc - com.jogamp.nativewindow.impl -> jogamp.nativewindow - com.jogamp.newt.impl -> jogamp.newt This sorts implementation details from the top level, ie skipping the public 'com', allowing a better seperation of public classes and implementation details and also reduces strings. This approach of public/private seperation is also used in the OpenJDK. commit 01bd8687e0d12146672dec42cfd3259e74eaba89 Author: Sven Gothel Date: Sun Feb 6 07:05:35 2011 +0100 Fix GLContext ProcAddressTable Caching: Add sw/hw accel bit to hash value due to possible diff function ptr of sw impl (NV/Win7) commit e4392c718ed0aa4999978015fc869c0fb9941e8a Author: Michael Bien Date: Sat Feb 5 22:34:04 2011 +0100 www: fixed tag (now xhtml valid) restructured the overview text a bit. commit efecc1eb881d28d142ecc39c1635161d70f58a6c Author: Sven Gothel Date: Sat Feb 5 22:27:57 2011 +0100 Add application-version.jnlp commit 33a2605d37ec590b8a7fd37a708f8159cb9bd487 Author: Dan Krisher Date: Thu Feb 3 00:59:55 2011 +0800 Move GLCanvas' static initialization of default GLProfile into constructor to avoid requiring native libraries at class initialization time. commit 0e8339fce21c7b5dc6bd9cbc8d09e308d6b3b3c7 Author: Barcsik Attila Date: Thu Jan 6 18:20:31 2011 +0800 Fixing build scripts for Solaris systems. commit e2040ada5a94b466ba95e84a497290c069d377bb Author: Sven Gothel Date: Sat Feb 5 04:03:51 2011 +0100 Fix bug #459 NV/Win7 PDF/caps selection Scenario - NV / Win7 driver version 266.58's - Caps: on-scr, rgba 8/8/8/0, accum-rgba 0/0/0/0, dp/st/ms: 16/8/0, dbl, mono The above 'wglChoosePixelFormatARB' impl returns an array of pixelformats, where the 1st entry is not hardware accelerated! This should be considered a bug in NV's driver, since the array should return a list ordered from 'best' to 'worst'. Workaround trying explicit hw acceleration 1st, then generic, then software. commit 5d18d6b57f7d9d92a9f568e20beb64a6d44de25a Author: Sven Gothel Date: Sat Feb 5 02:39:25 2011 +0100 Fix bug #461 on NV/Win (caps selection) Allows TestBug461OffscreenSupersamplingSwingAWT to pass on NV/Win7. Root cause was using the requested unfixed caps (onscreen, !pbuffer) instead of the fixed ones. commit 6dd574f75e0b27de31136c05cc0ed18f075f004f Author: Sven Gothel Date: Thu Feb 3 08:02:38 2011 +0100 Fix for Bug #452 WindowsWGLGraphicsConfiguration.create(..) -> WindowsWGLGraphicsConfiguration.createFromCurrent(..) emphasizing that all resources are 'current' ie locked and available. This method is used for the external context/drawable creation only, called while they are current. Hence this method no more makeCurrent/release, which interfered with the current external context state. WindowsWGLGraphicsConfigurationFactory: Move surface locking to the right (common) place. commit 63c8f5322e60e256ea2cdd07212f30a435494de4 Author: Sven Gothel Date: Thu Feb 3 07:02:31 2011 +0100 Fix: X11: Allowing FBConfig w/o XVisualInfo for non onscreen commit 0bc0f0219a7443ac721d15ad38508ecb4a50f26d Author: Sven Gothel Date: Thu Feb 3 05:23:57 2011 +0100 Expose provided SWT jars to SWT_CLASSPATH for test scripts commit 7274b21b07bab263ad6df558b206dd4fa42f7472 Author: Sven Gothel Date: Thu Feb 3 01:58:00 2011 +0100 Fix: Ensure proper resource initialization (display call) commit b24a78df9214e1a88a6508a5e089fa3951c8ed47 Author: Sven Gothel Date: Wed Feb 2 17:46:02 2011 +0100 enable junit.run.swt commit 5088f13a1248e79f81670313be5fa130db327f62 Author: Sven Gothel Date: Wed Feb 2 17:42:49 2011 +0100 Reloc TestBug463ScaleImageMemoryAWT.java to common jogl/glu commit aac2ba89a38d47fc24db10254e4b295717557b23 Author: wwalker Date: Thu Dec 30 14:01:04 2010 -0600 Fixed bug 450 (unrendered right side of GLJPanel in Gears) This bug caused the right sides of GLJPanels not to render if the panel is wider than its height (all pixels with x > height would be black). Wrote a unit test to sense the problem by reading an unrendered pixel back out of the frame, then fixed the typo in GLDrawableFactoryImpl.java that caused the error. commit c9864ae174d7be5276cd48490bc40b0cba9a91ea Author: Sven Gothel Date: Wed Feb 2 06:05:05 2011 +0100 Add section for make/lib to cover new SWT blobs commit 9bbff952425c7e2587160f80d66dcef5463b74bf Author: Sven Gothel Date: Wed Feb 2 05:58:00 2011 +0100 Fix GLProfile tests: default is max-fixed-pipeline, use GL2 instead commit 9129498d4c82684d0c2fe56fbe3f2bfa9e835d33 Author: Sven Gothel Date: Wed Feb 2 05:57:16 2011 +0100 Fix SWT tests in due to changes, minor linux fix commit 4e29ab96c2e5f934b7441f0df5bc976accac7c59 Author: Wade Walker Date: Wed Feb 2 04:37:46 2011 +0100 Added two simple SWT unit tests. Added a test that draws one triangle, using both the SWT canvas and the AWT canvas with the SWT_AWT bridge. Also added the SWT JARs for each platform to make/lib (since that's where antlr.jar and junit.jar were stored). Modified the make files to build and run the new tests. commit 3b72f696a0c46eb1a781066eed5513393ce0a25e Author: Sven Gothel Date: Tue Feb 1 06:12:52 2011 +0100 Fix: Missed package rename commit 2be6672f08e0217f886256ffca1f2b4152f164cc Author: Domokun Date: Tue Feb 1 05:42:50 2011 +0100 unit test for Bug464 added (cleaned CRLF/merged version; own text subpackage) commit e894ead4feb75efc0246da0d5b8d3005342c6c1c Author: Domokun Date: Tue Feb 1 05:23:19 2011 +0100 Bugfix (Bug 464 - TextRenderer useVertexArray was ignored) commit 7b9e0c29128f045f787bb5c4ed010628635f7b83 Author: Sven Gothel Date: Tue Feb 1 04:47:49 2011 +0100 TextRenderer: Fix imports / Add jogamp license commit e49386191079b08ee216f056338979be80029264 Author: Sven Gothel Date: Tue Feb 1 04:27:20 2011 +0100 junit glu: proper path and NOUI class suffix commit daea466337b1ed37e7e59d5a482ec69290155220 Author: Julien Gouesse Date: Wed Dec 1 19:47:11 2010 +0100 JUnit tests for gluProject and gluUnproject commit 7fac7bd6fd3524bb9ce438410fa972f07884878d Author: Sven Gothel Date: Tue Feb 1 04:21:26 2011 +0100 JUnit: Adding Test*NOUI* test pattern for unit test w/o any UI (AWT/NEWT) commit 314d694855774eef907c65f8f304056dcc87de6a Author: Julien Gouesse Date: Tue Feb 1 04:12:57 2011 +0100 Fixes the problem of high memory consumption in TextRenderer (single merged w/o whitespace) commit 05038484ecda1fb595bd64398566fefd1228d7af Author: Sven Gothel Date: Mon Jan 31 17:50:38 2011 +0100 test scripts.. commit 0ef5c280a3f3b6c2cf1276a69df537d982d6c1cd Author: Sven Gothel Date: Mon Jan 31 15:12:33 2011 +0100 JOGL change of default GLProfile order: GL4bc, GL3bc, GL2, GL2GL3, GL4, GL3, GL2ES2, GLES2, GL2ES1, GLES1 commit 42057f5b9b869013680500231b51be261b4139d8 Author: Sven Gothel Date: Mon Jan 31 15:06:14 2011 +0100 Fix: In case no shared resource is available, query the GLXVersion. commit f62b95c7bf2997bf7c309a7a186c4f46155f7c2a Author: Sven Gothel Date: Mon Jan 31 07:43:27 2011 +0100 Fix WindowsDummyWGLDrawable: onscreen && !pbuffer commit 8adc04788a6d9dd44de5a4636b46d14dbb70b799 Author: Sven Gothel Date: Mon Jan 31 07:42:43 2011 +0100 GLCapabilities enhancements: Choosing, All-Available, Data Handling (X11, WGL and EGL) - GLDrawableFactory exposes: public final List/*GLCapabilitiesImmutable*/ getAvailableCapabilities(AbstractGraphicsDevice device) - GLCapabilities platform specialization containing native ids (XVisual/FBConfig, PFD, EGLConfig, ..) - GLCapabilities setPbuffer(true) disables onscreen - Capabilities setOnscreen(true) disables pbuffer - Capabilities implements Comparable - *Capabilities: enhanced 'toString(..)' - CapabilitiesChooser.chooseCapabilities: 'CapabilitiesImmutable[] available' -> 'List /**/ available' - VersionApplet, GLCanvas.main, GLWindow.main, GLProfile/debug: dumps all available GLCaps - WGLGLCapabilities: proper non-displayeble (pbuffer) pfdid handling TODO: ES/EGL test with emulation commit 02d5240ccac8875144e5f37c2a4d09375338adc2 Author: Sven Gothel Date: Mon Jan 31 07:10:50 2011 +0100 version bump: j2se 1.6.0_23, ant 1.8.2 commit 09fc0654804ace06f5a2575d184de285ea799088 Author: Sven Gothel Date: Mon Jan 31 07:09:58 2011 +0100 Fix: GLX exception message / sorted imports commit a77b34b794a14855390a6c9587f565479235af30 Author: Wade Walker Date: Wed Jan 26 16:32:43 2011 -0600 Add unit test for bug 461, offscreen supersampling This is a unit test for a bug that occurs on Windows when the stencil buffer is turned on for an offscreen buffer. This bug doesn't appear on CentOS 5.4, or in JOGL 1.1.1.a. commit dae2f33848a60003096681ae18e719aee9936112 Author: Wade Walker Date: Tue Jan 25 09:45:09 2011 -0600 Fix bug 463 where gluScaleImage consumes all memory Changes the Type_Widget.java constructor to allocate a normal buffer instead of a direct buffer. Apparently JVMs can't allocate small direct buffers efficiently, and since Type_Widget is called inside tight loops millions of times, we can't afford to do it this way. This commit restores it to how it was in JOGL 1. commit bc05e317f6f989e2f515cf4e0aae8d5f050ce54f Author: Wade Walker Date: Sun Jan 16 15:37:00 2011 -0600 Add test case for bug 459 shader compile failure This commit adds a test case for bug 459, where compilation of a vertex buffer fails on Windows when the stencil cap is requested. This bug is Windows-only; it works on Mac OS X and CentOS. commit 3972f4ecfa8581f8924a7e6376043f2e806bcce1 Author: Wade Walker Date: Tue Jan 11 14:09:45 2011 -0600 Created Eclipse project files. Created the Eclipse project files needed to build jogl. These files don't contain any absolute paths, but they do depend on the user setting up the JRE and Ant properly inside Eclipse. commit 8bec14de2d0160a253518da8a57b93c0e62af986 Author: wwalker Date: Tue Jan 4 15:24:14 2011 -0600 Fixed to work properly in the Ant junit.run.* tasks Fixed the texture load to come from a resource stream so it'll work when run from inside a JAR by the junit.run.* Ant tasks. Also modified the test JAR build step to include any resource files in the test source code directory. commit b50e75044196aa1f11e7b367b457163553ea373f Author: wwalker Date: Fri Dec 31 11:05:39 2010 -0600 Added unit test for bug 417; bug already gone I added a unit test for bug 417 (error loading grayscale texture with TextureIO). The test works fine, so the bug must have been fixed unknowingly after submission. commit 64a500413de7b3d1ddcece1256d1f28601d6ec0d Author: Sven Gothel Date: Thu Dec 23 06:34:11 2010 +0100 scripts: add new tests commit 0cba49ba5d20550f1190dfe66b4bfe4bc79809fd Author: Sven Gothel Date: Thu Dec 23 06:33:50 2010 +0100 NB: Fix test folder (missed at src/junit -> src/test renaming) commit d75a03408e4d81b911b9efd3163c456399c93123 Author: Sven Gothel Date: Thu Dec 23 06:32:47 2010 +0100 AMD/X11: Added AMD/X11 workaround On AMD/X11 the create/destroy sequence must be the same even though this is agains the chicken/egg logic here .. commit 5bd7f6ebe320689a8dcbceb10dcb2caf015c1884 Author: Sven Gothel Date: Thu Dec 23 06:32:01 2010 +0100 Fix WindowClosingProtocol test, using new AWTRobotUtils commit 643b37d3e5e329ecad3890792bc8a35e6e1ea49f Author: Sven Gothel Date: Thu Dec 23 06:30:25 2010 +0100 TestCloseNewtAWT: Use new AWTRobotUtil.closeWindow() commit e8b25a1d6c9fe06b68bb16c0ea19276f97e28414 Author: Sven Gothel Date: Thu Dec 23 06:29:45 2010 +0100 GLCanvas: lock/sync drawable usage ; remove destroyed refs (context, drawable, awtConfig) ; Try create/destroy AbstractGraphicsDevice on EDT commit 9d7109c58270bc2b4215b24447894be766943b80 Author: Sven Gothel Date: Thu Dec 23 06:27:26 2010 +0100 Cleanup / Debug commit e7778124162aef7004e040dded5de1eaf5e1ece4 Author: Sven Gothel Date: Thu Dec 23 06:26:47 2010 +0100 NEWT: Add WindowListener.windowDestroyed() ; Remove WindowImpl.windowDestroyed() Add WindowListener.windowDestroyed() To expose a proper window lifecycle, ie destroy-notify and destroyed, this notification is added. This will be used at least in unit tests, where we verify destruction. Remove WindowImpl.windowDestroyed(): This native hook (planned to be called by native destroy notification) is unreliable or not supported for all platforms. NEWT relies on the pre destroy native hooks and handles the final destroy notification itself. commit 1c2a11a54949188d6704558f7fa38ecf8e811118 Author: Sven Gothel Date: Wed Dec 22 02:28:39 2010 +0100 Always issue GLEventListener's initialization, if provoked by ctx creation commit 2ddefbe9d2d99960042e9c2b3327952af112560b Author: Sven Gothel Date: Wed Dec 22 01:57:40 2010 +0100 Fix WGL bitmap regression while fixing it (96a0e0706258824c1dd524d4cbd7682a904b84f4) commit 2cbab63bd6c230d31b8ae6f1d794ad49bf23bb53 Author: Sven Gothel Date: Sun Dec 19 14:54:08 2010 +0100 JOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444) Similar to JFrame's closing behavior, the following components window closing follow the new WindowClosingProtocol: - GLCanvas - GLJPanel - NEWT Window, GLWindow - NEWT NewtCanvasAWT The implementation obeys either 1) the user value set by this interface, 2) an underlying toolkit set user value (JFrame, ..) 3) or it's default, eg. {@link #DO_NOTHING_ON_CLOSE DO_NOTHING_ON_CLOSE} within an AWT environment. If none of the above determines the operation, this protocol default behavior {@link #DISPOSE_ON_CLOSE DISPOSE_ON_CLOSE} shall be used. commit 2323c30c23b6f9eb7d7ccf94e6cdcbcb3d2f34a6 Author: Sven Gothel Date: Sun Dec 19 00:45:45 2010 +0100 test scripts .. VersionApplet commit 5166d6a6b617ccb15c40fcb8d4eac2800527aa7b Author: Sven Gothel Date: Sun Dec 19 00:45:18 2010 +0100 Adding NVIDIA 'Threaded optimization' workaround/fix at initialization on Windows for javaws/applets. It has been observed that for some combinations, eg: - Windows 7 64bit (other variants may apply too) - NVIDIA 8600M GT - 260.99 the NVIDIA setting of 'Threaded optimization' := 'auto' (default) causes the JVM to simply crash in case of javaws and [jnlp] applets. 'Threaded Optimization' := 'off' works reliable 'Threaded Optimization' := 'on' never works with javaws and applets on the above configuration A user could workaround this by setting 'Threaded Optimization' := 'off', however, this would disable many users on the spot, since you cannot ask the average user for such a task, if she only wants to see a web page. This patch 'fixes' the 'auto' mode by running the eager GL profile initialization within a block of single CPU affinity: SetProcessAffinityMask(pid, 1); try { initProfilesForDeviceImpl(device); } finally { SetProcessAffinityMask(pid, sysValue); } Hopefully we can remove this hack with a driver fix. However this workaround is as little invasive as possible. commit 5f67805a1cba7390cde0f862cbe4d4fcce3396ee Author: Sven Gothel Date: Sun Dec 19 00:29:04 2010 +0100 GLDrawableFactory: Add getFactory(AbstractGraphicsDevice device) commit d8293b3a8cf0974e10ea842b0652194799d6e801 Author: Sven Gothel Date: Sun Dec 19 00:24:59 2010 +0100 Fix GLProfile initProfilesForDevice and DEBUG ; Fix JoglVersion.getGLInfo GLProfile.initProfilesForDevice: use either desktop or egl factory on one device GLProfile.DEBUG: Print proper factory instance, full device JoglVersion.getGLInfo: Print only availability of used device, otherwise we could kick off initialization commit e1682f8cd5eab26b12c868f19ff3adc544098077 Author: Sven Gothel Date: Sun Dec 19 00:16:19 2010 +0100 Debug/Cleanup: toString: print base classname only; Misc .. commit 1a6f376b183c1463e557e8fbbfbccce5633bd520 Author: Sven Gothel Date: Sat Dec 18 03:36:51 2010 +0100 WindowsWGLContext: Proper var names, misc cleanup commit ba015ce215861f2059200dddd2f14253c2651cfe Author: Sven Gothel Date: Sat Dec 18 03:35:27 2010 +0100 convenient internal queries for shared commit d2f790f0fdc58bfdce66ceced3712cece26df4d5 Author: Sven Gothel Date: Sat Dec 18 03:34:50 2010 +0100 GLCanvas: init drawable by paint/display makes the init sequence more equal for all launch flavors (applet/javaws/..) commit b45c57bf6cb9dd16313750d5609311f388dcf277 Author: Sven Gothel Date: Sat Dec 18 03:34:05 2010 +0100 NativeWindow Debug: Early stack trace info w/ thread name commit ea0d252a15e1fa26f420490e7464f69afce3a62c Author: Sven Gothel Date: Sat Dec 18 03:33:22 2010 +0100 Version Applet as JavaWS commit 89dd6a8729801d1b927c4d9a9826aa90e034b67a Author: Sven Gothel Date: Sat Dec 18 03:30:23 2010 +0100 GLProfile: refine doc commit 0308faca261052b44ed5a7cd43a7e9276c29f134 Author: Sven Gothel Date: Fri Dec 17 00:16:32 2010 +0100 debug node: WindowsDummyWGLDrawable commit 45188f32557fade1d4d289e84de54aeee9d1efa3 Author: Sven Gothel Date: Fri Dec 17 00:16:13 2010 +0100 SharedResourceRunner: Expose convenient 'getShared()' w/o creation commit 80cef32b190f7267d1ef9af7626a1bf75dc47056 Author: Sven Gothel Date: Fri Dec 17 00:15:31 2010 +0100 debug: print thread name only; simplify mapGLVersion(..) call commit d1640dd5121d03f3cfca8e283ca7d9d5631851eb Author: Sven Gothel Date: Fri Dec 17 00:14:47 2010 +0100 jnlp: remove version attribute from extension ref, which would require the server side jnlp/version protocol version applet: remove noddraw commit 04aa46e5745f346d6527ddba8c39e61e25acf55e Author: Sven Gothel Date: Thu Dec 16 07:13:36 2010 +0100 Fix jogl-core.jnlp; Add/Fix Launcher Version Applet commit dcd98e8c38523b8220d4628ca1b8403d07e09954 Author: Sven Gothel Date: Thu Dec 16 06:00:36 2010 +0100 Version Applet: set GLCanvas size, otherwise it won't realize GL drawable commit ad5ecd65484952ec462c560877600c66c95e873a Author: Sven Gothel Date: Thu Dec 16 05:09:10 2010 +0100 Add missing jnlp/html files for Version Applet: a7398aac183762174b0608ad7f83d9130c61523e commit 96a0e0706258824c1dd524d4cbd7682a904b84f4 Author: Sven Gothel Date: Thu Dec 16 04:18:15 2010 +0100 Fix WGL Bitmap Offscreen Drawable In conjunction with the gluegen investigation (gluegen: fbdedff789077b5ffa07811590f771b6f9a4f3a7), on Windows the type LONG is always 32bit, hence we have to declare: typedef __int32 LONG; Besides, WGL_DRAW_TO_PBUFFER_ARB and WGL_DRAW_TO_BITMAP_ARB were missing in the WGL/ARB attribute query, and the latter was not set in caps -> attributes. Added fail safe exception for null chosen caps, if X11/WGL algo fails to determine. commit e38af7beda4edaa719240dda50df0a6611528586 Author: Sven Gothel Date: Wed Dec 15 23:13:16 2010 +0100 fix junit/test path commit a7398aac183762174b0608ad7f83d9130c61523e Author: Sven Gothel Date: Wed Dec 15 12:32:37 2010 +0100 Add Version Applet commit 113c8a43457a11e53e3b088f53f997d0efd5aacf Author: Sven Gothel Date: Wed Dec 15 05:12:00 2010 +0100 Add version tag in jnlp files commit 99a1452c9fa7289e3364d5c2a15b3b60fe723f5c Author: Sven Gothel Date: Wed Dec 15 04:57:29 2010 +0100 final cleanup test results archive :) commit a8468286f5ebd6268942c25449796b7d45f57485 Author: Sven Gothel Date: Wed Dec 15 04:19:35 2010 +0100 final cleanup test results archive :) commit ff0e5770b5d3aa63199c657f8b8182152840c369 Author: Sven Gothel Date: Wed Dec 15 03:49:49 2010 +0100 test-zip-archive cleanup commit 4c27377366a338ca9049006dd45672dad0f770ce Author: Sven Gothel Date: Wed Dec 15 03:39:35 2010 +0100 JAWTUtil: Fix case when init is run on AWT EDT (which is odd, ie not using GLProfile.initSingleton(..) commit 23d67dafc885bddcb81b84fbe50492bc531d4e0e Author: Sven Gothel Date: Wed Dec 15 03:25:53 2010 +0100 don't remove files @ test-zip-archive commit d7613fc21625c999aa4609d098939f548eb42373 Author: Sven Gothel Date: Wed Dec 15 03:19:09 2010 +0100 cleanup declare.common/init commit 2226693372e748ae9866d6eab1fde4f5c0cfc93a Author: Sven Gothel Date: Wed Dec 15 03:17:29 2010 +0100 merge test.run.setup with init commit 968f90d3948f551182eac50dd967d4af105f8b7a Author: Sven Gothel Date: Wed Dec 15 03:07:12 2010 +0100 mkdir after delete: test results folder commit f824af07ab80c1d7368849cbde6f99a84084c6ba Author: Sven Gothel Date: Wed Dec 15 02:57:02 2010 +0100 archive test results commit c95bc87835319758c10f56ea2cd12093efc3c9c0 Author: Sven Gothel Date: Wed Dec 15 02:56:37 2010 +0100 Fix jnlp files jar names and removed main attribute of jar ref .[win|x11|osx].jar -> .os.[win|x11|osx].jar nativewindow.os.windows.jar -> nativewindow.os.win.jar newt.broadcomegl.jar -> newt.hw.broadcomegl.jar newt.intelgdl.jar -> newt.hw.intelgdl.jar removed non existing jnlp file for config gl2es12. commit 74b18ab38f7606a2db17a26245c430d3051ed789 Author: Sven Gothel Date: Mon Dec 13 19:54:33 2010 +0100 only kick off gluegen base.compile commit e735c312c874ae6abc401b4765b24a83f5238a99 Author: Sven Gothel Date: Mon Dec 13 06:27:55 2010 +0100 Cleanup (removed obsolete class / imports) ; Cg fix commit 11a7579be24c26f9ea53598a17f7ebe9d246bb33 Author: Sven Gothel Date: Mon Dec 13 03:44:10 2010 +0100 common folder etc: junit -> test commit ebfb837b95fc6eb6ec9102004d1d068933957400 Author: Sven Gothel Date: Mon Dec 13 03:22:08 2010 +0100 tests: test.auto.run (junit.run) and test.manual.run commit 84a76425dd10933a7ad033920a1e0ce12a2a107b Author: Sven Gothel Date: Mon Dec 13 02:26:48 2010 +0100 Cleanup test/junit structure. com.jogamp.test -> com.jogamp.opengl.text; Compile posted Issue* Bug* snippets commit 519776330c78e296d9868e959ddc64d00acac496 Author: Sven Gothel Date: Sun Dec 12 18:43:36 2010 +0100 Fix API doc: firstUIActionOnProcess commit 17fafe97b0cd098374a038d0af4c057157c2794d Author: Sven Gothel Date: Sun Dec 12 09:43:47 2010 +0100 Newt: Add com.jogamp.newt.util.* package(s) to public javadoc commit acda58e3d4a6fd735d0ec755a22b7ed44d02746f Author: Sven Gothel Date: Sun Dec 12 09:38:18 2010 +0100 NativeWindow: Move RegisteredClass to private impl package commit e15344bfaf4df4ceb710b304b164bd03005dc132 Author: Sven Gothel Date: Sun Dec 12 09:21:16 2010 +0100 GLJPanel/GLPbufferImpl: destroy pbuffer reentrance fix; disable device close (X11 error on nvidia); reenable GLJPanel test commit 8df12ca151dfc577c90b485d4ebfe491b88e55aa Author: Sven Gothel Date: Sun Dec 12 07:55:13 2010 +0100 Adding misc NEWT docs/notes commit 994d64debb649ee73ee013b1fbcda22376f4eb6c Author: Sven Gothel Date: Sun Dec 12 07:54:24 2010 +0100 script updates commit d720b43f8c75753e5ceed94c234688266786ba08 Author: Sven Gothel Date: Sun Dec 12 07:54:08 2010 +0100 makeCurrent/release within closures commit 599e3eb630a59a9afbce45403c0567222e6065de Author: Sven Gothel Date: Sun Dec 12 07:53:37 2010 +0100 GLProfile: initialize 1st, debug info later. Debug shall not change the startup behavior commit ca1e14eee25536a217d682c66f9ad07d5bdf642e Author: Sven Gothel Date: Sun Dec 12 07:52:54 2010 +0100 JAWTUtil: Eager initialization of AWT desktop props Triggers immediate AWT property resolution. Would reproduce any javaws / AWT race condition. commit 48f6568ebffdd557651460fb5f3f7f4abbca2440 Author: Sven Gothel Date: Sun Dec 12 07:51:06 2010 +0100 Windows RegisterClass: Use new RegisteredClassFactory (window class), Misc. This solves the issue when an applet is started/stop and started again, or another applet runs in the same JVM. Also soves the issue for multiple JVMs. RegisteredClassFactory can be instanced to manage one shared window class, currently in use for GDI's dummy window and NEWT. A class base name and a window proc handle must be passed in the factory cstr. Before registering, the class is tested if already exists, eg another applet in the same JVM. If registration fails, the class name will iterate until successful or MAX_INT reached, eg if multiple JVMs are running. Added NativeWindow Common Native Code. commit f3512c700b2b3161eb773e77d0d41567acb710be Author: Sven Gothel Date: Sat Dec 11 06:42:20 2010 +0100 Add javaws test scripts commit c8807f6847e34d599b8bc9a476c84785e1925c8a Author: Sven Gothel Date: Sat Dec 11 06:41:00 2010 +0100 Generalize SharedResourceRunner and use/impl it for WGL as well (besides X11). It seems necessary to use off thread shared resources (dummy window, drawable and context) to keep them alive in Java Webstart. commit 74fb7ca7ac8484e86ff6c84a5e3ceef79fb4d0d6 Author: Sven Gothel Date: Fri Dec 10 05:32:41 2010 +0100 little TODO update commit c572c6a92bd74f43e65d51d7266bfd7c0f9cc38f Author: Sven Gothel Date: Fri Dec 10 05:31:51 2010 +0100 GLCanvas: sync drawable access; flush awtConfig at remove; commit 51bde21c5131c800f987c55bf1c3c40fd0ebc076 Author: Sven Gothel Date: Fri Dec 10 05:28:15 2010 +0100 GDI: Add GetObjectType(..) commit 4b5d4bcbf91af522141ecc682dd8d5c2d0e6ed1d Author: Sven Gothel Date: Fri Dec 10 05:27:53 2010 +0100 FIX gears demo: set lists to 0 at dispose commit 900d1baf3c7f92685c8d1eb4cdb9db8f8a69f974 Author: Sven Gothel Date: Fri Dec 10 05:27:17 2010 +0100 NEWT: Minor cleanup ; Debug setVisible message in issuing thread commit ee4a086bf755518e7fab8117057e4848aad53070 Author: Sven Gothel Date: Fri Dec 10 05:26:44 2010 +0100 Minor test cleanup commit 653c3e06812f49da8e9223af1f17ea34eac60805 Author: Sven Gothel Date: Fri Dec 10 05:26:01 2010 +0100 WGL/DummyWindow: Roll back GetDC/ReleaseDC via lock/unlock surface, redundant, since it's static DC commit 0a6a592c04a85d8124aa9d38b67f0caa1d739b75 Author: Sven Gothel Date: Fri Dec 10 05:24:32 2010 +0100 Cleanup GLGraphicsConfiguration[Factory] implementations (X11/WGL) - AWT/WGL: - Using sun.awt.Win32GraphicsConfig via reflection, if supported, else we may fail. - Preselection of PFD as follows: - 1st choice is to create our own AWT GraphicsConfig (GC) based on PFD/GLCaps, ignoring WGL_SUPPORT_GDI_ARB, PFD_SUPPORT_GDI - 2nd choice is to use AWT PFD pool of GC's - else we fail -> use NewtCanvasAWT instead (TODO: Other JDK/AWT implementations ?) - Set PFD will be performed at setRealized(..) - SharedContext (X11/WGL) is synchronized to allow multithreaded access, if required - Simplified and unified (X11/WGL) GraphicsConfigurationFactory - WGL 'external' drawables will be determined with given arguments right away commit 7753e1c5a50700771b1e0be4bc99c2585398e3ce Author: Sven Gothel Date: Thu Dec 9 23:52:01 2010 +0100 NativeWindow: Expose lock test/get methods and constructor with HDC commit db49722d704b1b2f607c5598cd71083e4fc4e28e Author: Sven Gothel Date: Thu Dec 9 23:42:55 2010 +0100 JOGL: GLContextImpl's updateGLXProcAddressTable(..) only uses device as a key for cached table, since the GLX/WGL/etc function entry pointers are GL profile agnostic. Hence createContextARBImpl(..) (WGL/GLX) does not need a sharedContext, but just can issue the inexpensive updateGLXProcAddressTable(..) call. commit 10f33b1df5232ecc43dfc072ece35da57f75d0df Author: Sven Gothel Date: Thu Dec 9 23:37:21 2010 +0100 DummyWindow: 64x64, WGL: Use lockSurface/unlockSurface block to gather / release HDC commit a92e315245f6cefb55a71572eab8b6c95e8041a3 Author: Sven Gothel Date: Thu Dec 9 23:31:14 2010 +0100 GDI: Fix CreateDummyWindow: Use local getModuleHandle(NULL) and synchronize factory method. commit da97bc022020546455b293aea25dba3ee59152f5 Author: Sven Gothel Date: Thu Dec 9 23:27:18 2010 +0100 NEWT/Windows: Use GDI GetDC/ReleaseDC commit a247475fa8834a289de0d86b6928b2c191ebf50d Author: Sven Gothel Date: Sat Dec 4 04:55:36 2010 +0100 X11 DummyWindow: Pass size and set size in proxy commit a2dcc8ca81b5dc5fd793c3c85ec415494ec42860 Author: Sven Gothel Date: Sat Dec 4 04:55:08 2010 +0100 Fix: Typo unlock() -> lock() .. oops commit 539ec0fb0d657a1094b835c767d7f1c6c3de6ec9 Author: Sven Gothel Date: Sat Dec 4 04:54:46 2010 +0100 WGL DummyWindow: Use size 128x128 and set size in proxy commit 5d5fa6ded1811ce35bf127d68b114b6b3c2e0e7c Author: Sven Gothel Date: Sat Dec 4 04:54:19 2010 +0100 X11 DummyWindow: Pass size and set size in proxy commit d453a86de60cd4171373814f6cf7baf65ef1d7dc Author: Sven Gothel Date: Fri Dec 3 21:50:48 2010 +0100 Windows WGL fixes updateGraphicsConfiguration(..) and DummyWGLDrawable WindowsWGLGraphicsConfiguration: If updateGraphicsConfigurationARB fails, continue with updateGraphicsConfigurationGDI WindowsDummyWGLDrawable: Utilize proper GraphicsConfiguration selection using updateGraphicsConfiguration() commit de2a30104098216963132ed02b3dd66acd799d9e Author: Sven Gothel Date: Fri Dec 3 21:47:49 2010 +0100 GLCanvas: Adding convenient constructor for GLCapabilties and Shared Context (with unit test) commit fd0d3f15d41d32b3987f4b88862619ef1a31b999 Author: Sven Gothel Date: Fri Dec 3 21:47:01 2010 +0100 Fix NEWT GLWindow: Adding missing shared GLContext setter (with unit test) commit c58fd6b65a4da45663330f405ab94f24adb4c91d Author: Sven Gothel Date: Fri Dec 3 21:45:37 2010 +0100 Fix NEWT WindowImpl: setTitleImpl() at native construction. This tiny fix finally enables the window title setting before setVisible(true) commit 80352f4e9f95f358f50f44bf65d04b60f79821bf Author: Sven Gothel Date: Fri Dec 3 21:35:43 2010 +0100 DEBUG: GLProfile: Dump GLInfo ; GLContext: SET mappedVersions.. no stack trace commit a24f035234aee20ed23fe2ae4f701db5ec6db625 Author: Sven Gothel Date: Fri Dec 3 21:33:55 2010 +0100 GLPbufferImpl: Remove redundant AWT threading constraints ; Signal dispose to all GLEventListeners at destroy() commit 4b9ad2508ff31a03d3bc4482d812a6cbc0c5c33b Author: Sven Gothel Date: Fri Dec 3 21:32:16 2010 +0100 Cleanup GLDrawableFactory API and platform Implementations - Finish API change using the AbstractGraphicsDevice, which denotes the target device for the desired NativeSurface / GLDrawable. The AbstractGraphicsDevice argument may be null to reflect the platform's default device. Clarified API documentation. This move is necessary to make the API coherent. - createOffscreenDrawable(..) may create a Pbuffer drawable if caps and supported. This unifies the functionality with createGLDrawable(..). Further more, a Pbuffer drawable is an offscreen as well. - added createOffscreenSurface(..) following the same behavior as createOffscreenDrawable(..), this is a convenient native offscreen surface factory entry. - removed createGLPbufferDrawable(..), use createOffscreenDrawable(..), since it is redundant! Implementation Details: - EGLDrawableFactory holds a shared native EGLGraphicsDevice, being used by the offscreen EGL drawable (no more multiple creation). commit de9211df2c1654db889bb5d5c43297ed7d6499ba Author: Sven Gothel Date: Mon Nov 29 02:26:11 2010 +0100 JOGL AnimatorImpl: issue drawable.display() even if it's not realized yet, since the drawable may realize itself with the display() call. This situation appears with an AWT GLCanvas commit 8f79fbf000014f10f7c958ef03c656a4c383fc66 Author: Sven Gothel Date: Sun Nov 28 23:29:02 2010 +0100 Animator: Run as non daemon like FPSAnimator. This seems to be the users desired behavior and is more compliant with other APIs commit f1b6d82acda9c88bfeb8d1913b4d101539c45391 Author: Sven Gothel Date: Sun Nov 28 22:00:15 2010 +0100 NEWT/X11: Don't erase background with pixmap or pixel commit 597007fc23fbf86e036629b6c6b157e0e0506715 Author: Sven Gothel Date: Sun Nov 28 03:54:00 2010 +0100 JOGL: Proper handling of Read Drawable Support (if not supported), add query. Read Drawable feature reflects the make context current API having a seperate read drawable next to the write drawable (default). glXMakeContextCurrent(write, read, ..) On X11 a ready drawable is only supported for GLX >= 1.3, on Windows only if extension WGL_ARB_make_current_read is available, on EGL it's always supported, on OSX not at all. API cleanup GLContext: changes: setGLDrawableRead(GLDrawable) -> setGLReadDrawable(GLDrawable) new: isGLReadDrawableAvailable() new: getGLExtensionsString(); Access qualifier cleanup. GLContextImpl: GLVersionNumber moved out. commit 0c9eb947a2ffabba2c10799f6ea50756a2749702 Author: Sven Gothel Date: Sun Nov 28 03:33:00 2010 +0100 minor cleanup commit aaa2b1df6ba9bd30f251ddada32ba0d56b12aa81 Author: Sven Gothel Date: Sun Nov 28 03:31:30 2010 +0100 NewtCanvasAWT: disableBackgroundErase() before (X11) and after (Windows) addNotify(). This change is in sync with 86c164950b0a0d351fc8af3884187b10201b6237 commit 6e8bf2d5caffe8734075fb84736d19a6e45e6e83 Author: Sven Gothel Date: Sun Nov 28 03:30:14 2010 +0100 NEWT WindowImpl: Null Check on childWindows (already destroyed) commit 8ffb0bd7d4e1b3b22630a14a71948b281c39b6e7 Author: Sven Gothel Date: Sat Nov 27 11:14:57 2010 +0100 Javadoc developer level must be 1.5 due to gluegen compile time plugin commit 86c164950b0a0d351fc8af3884187b10201b6237 Author: Sven Gothel Date: Sat Nov 27 07:55:31 2010 +0100 GLCanvas: Fix disableBackgroundErase/X11, make drawable creation more robust, doc Java2D/AWT properties. On X11 disableBackgroundErase() must happen before native peer creation, this patch issues it before and after super.addNotify(). Make drawable creation more robust, ie only create a drawable in case the size is > 0x0 and do this check/create at display/paint in case size it not yet determined. Add documentation about Java2D/AWT properties impact on GLCanvas. Make JUnit tests on AWT/GLProfile's more robust, while adding frame validate() ensuring 1st paint will have a size, hence will create the drawable. This is necessary for eg. AMD GPU's and GL context > 3. commit c6c30d46bc9c6ff472e35cf592713297b1ef7409 Author: Sven Gothel Date: Fri Nov 26 13:56:33 2010 +0100 Add GL_VENDOR to JoglVersion GL output commit be576b98ac0d8f8309510763064485961e485a7d Author: Sven Gothel Date: Fri Nov 26 13:42:38 2010 +0100 WGL: Add GetLastError in case external context/drawable can't be retrieved commit a77abd78367fd8e172b6bae0fa742ac3c89bb243 Author: Sven Gothel Date: Fri Nov 26 04:42:39 2010 +0100 Reduce visibility -> package private commit 237ab306f4dba00316b8e09f571cf7cb5612d0c3 Author: Sven Gothel Date: Thu Nov 25 20:19:15 2010 +0100 Reduce the use of xml brackets to reduce potential hudson/junit xml parser exceptions commit 2aa90676e4954269f86ec23b39e638b12e178e92 Author: Sven Gothel Date: Thu Nov 25 18:53:48 2010 +0100 Refined VersionInfo usage commit d1d10e7eeb2a46acf16ae125395e95189e011f1f Author: Sven Gothel Date: Thu Nov 25 16:29:24 2010 +0100 JOGL/Windows/ATI r3xx: Bug #438: tolerate release context if GetLastError is SUCCESS commit 4c87224144d955d000f0d5efdc9c058416cdefac Author: Sven Gothel Date: Thu Nov 25 16:27:52 2010 +0100 NativeWindow/GDI: Adding ERROR_SUCCESS to make the code more clear. commit fefd11bb37abc0eff255ff1ad7506c95e13e7b11 Author: Sven Gothel Date: Thu Nov 25 16:26:41 2010 +0100 GLProfile/Debug: Dump Version info upfront, otherwise we won't see it with an exception. Also adding current thread name. commit cb83142365ddfc59fb2e494c207cba5c5a1cf3c6 Author: Sven Gothel Date: Thu Nov 25 03:24:08 2010 +0100 GLCanvas: Refine access modifiers commit a6c7a003d42a00747f42452cfde0bd8b8537be47 Author: Sven Gothel Date: Thu Nov 25 03:02:53 2010 +0100 test scripts: add new AWT recreation test commit 20dd60820257af9aef8ff3eeab1c03736252e284 Author: Sven Gothel Date: Thu Nov 25 03:02:26 2010 +0100 Relax GLAnimatorControl, ie remove fail fast for start()/stop(), return (boolean)success instead. commit c62a07ceeafec94c4327b8db2d2dc359043b2f2b Author: Sven Gothel Date: Thu Nov 25 03:01:43 2010 +0100 cleanup imports commit 16bb638603c01e3d3ed94c63550b7c2b18ad23a2 Author: Sven Gothel Date: Thu Nov 25 03:01:27 2010 +0100 Fix GLCanvas Recreation - Regression 96af6c9bf2d683115996 96af6c9bf2d683115996 moved the creation of the AWTGraphicsConfiguration, GLDrawable and GLContext to the GLCanvas constructor. This disabled recreation, removeNotify()/addNotify() after 1st addNotify(), since the drawable/context were already set to null. Smart recreation, ie not destroying the resources completly: 1 - drawable 2 - context 3 - AWTGraphicsConfiguration's Device (X11: Display) is not possible, since removeNotify() is the only destroy notification we have from AWT, which would leave the above resources open -> leak. This is especially true for (3), since the device is created 'on the fly'. In NEWT we use lazy creation/destroy and are able to keep the references alive. A remodelling of AbstractGraphicsConfiguration would be required, which indeed would be overkill. Simple solution is to move the creation block back to addNotify() but before 'super.addNotify()', since it needs our chosen AWTGraphicsConfiguration. Also flagging sendReshape in addNotify(). Added test case com.jogamp.test.junit.jogl.awt.TestAWT03GLCanvasRecreate01.