aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* X11Util DisplayName: Respect DEFAULT_CONNECTION stringSven Gothel2011-02-281-2/+2
|
* Attempt to analyze failed AWT UI tests, where no paint is being issued to ↵Sven Gothel2011-02-264-15/+35
| | | | GLCanvas.
* Code cleanup: override, imports, StringBuilder, ..Sven Gothel2011-02-2626-56/+142
|
* Clean/Fix: Threading CodeSven Gothel2011-02-2611-80/+90
| | | | | | - Remove unsafe double checked locking - Annotate safe double checked locking (volatile) - use 'static final' if possible
* changes due to code cleanup in gluegen.Michael Bien2011-02-269-23/+28
| | | | | | - StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes
* GLProfile: More Tolerant for missing features; MacOSX: Fix External Context ↵Sven Gothel2011-02-263-9/+19
| | | | / SWT; SWT Test: Distinguish awt/headless and main-thread (osx) swt launch
* Avoid NPE (pairs with 6188d6a385056adade49fcb6d8247f94f96d402e)Sven Gothel2011-02-251-4/+5
|
* Fix bug 473: Override on implementations with 1.5Andy Brown2011-02-255-18/+18
| | | | | | | | | | 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.
* Avoid NPE, incr. test poll, ..Sven Gothel2011-02-253-10/+11
|
* NativeWindow NativeSurface lock/unlock Surface cleanup ; NEWT WindowImpl ↵Sven Gothel2011-02-224-49/+57
| | | | | | | | | 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.
* misc cleanup (import,script attributes)Sven Gothel2011-02-221-5/+0
|
* WindowsExternalWGLContext: Tolerate invalid/released hdc (swt, winxp-32bit)Sven Gothel2011-02-221-26/+21
|
* NativeWindow/SWT: Rename SWTMisc -> SWTAccessor; Add to nativewindow.core.jarSven Gothel2011-02-222-15/+112
|
* NativeWindow/SWT: Add SWTMisc utility allowing platform independent accessSven Gothel2011-02-221-0/+112
|
* JOGL/X11/AWT: No more need for seperate X11 Display instance if availableSven Gothel2011-02-221-6/+5
|
* Cleanup NEWT MainThread, using new AWTEDTUtil impl. / Sync AWTCanvas with ↵Sven Gothel2011-02-227-205/+276
| | | | | | | | | | 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
* NativeWindow ProxySurface Abstraction and lock/unlock Surface cleanupSven Gothel2011-02-2218-325/+399
| | | | | | | | | | | | | - 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
* Win,ARB,GL-2.x: Fix pfd to caps conversion: !pbuffer / CleanupSven Gothel2011-02-115-99/+107
| | | | | | | | | | | 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, ..
* Win,GDI,SWT: Fix pfd to caps conversion. Added thorough debug code.Sven Gothel2011-02-113-11/+30
| | | | | | | 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.
* Fix Win/GDI: getAvailableGLCapabilitiesGDI() add offscreen GLCaps as wellSven Gothel2011-02-101-13/+3
|
* Spec Doc update/fixSven Gothel2011-02-101-1/+2
|
* Fix: Java 1.5 warningsSven Gothel2011-02-097-18/+18
|
* Spec: Bump Java version to 1.5Sven Gothel2011-02-091-22/+26
|
* Fix code styleSven Gothel2011-02-091-1/+2
|
* Merge branch 'bug_468_ClassCast_exception_on_debug_logging_try_2' of ↵Sven Gothel2011-02-091-1/+4
|\ | | | | | | https://github.com/WadeWalker/jogl into WadeWalker-bug_468_ClassCast_exception_on_debug_logging_try_2
| * Fix ClassCastException when debug logging enabledWade Walker2011-02-081-1/+4
| | | | | | | | | | The debug logging code puts a null reference into a list, then tries to cast it to a WGLGLCapabilities object.
* | Remove CDCSven Gothel2011-02-098-2572/+0
| |
* | GLProfile: Sorting importsSven Gothel2011-02-091-6/+10
| |
* | Move implementation private files from com.jogamp.<module>.impl. to ↵Sven Gothel2011-02-09308-903/+903
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jogamp.<module> (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.
* | Move implementation private files from com.jogamp.<module>.impl. to ↵Sven Gothel2011-02-08272-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jogamp.<module> (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.
* | Fix GLContext ProcAddressTable Caching: Add sw/hw accel bit to hash value ↵Sven Gothel2011-02-063-6/+17
|/ | | | due to possible diff function ptr of sw impl (NV/Win7)
* Move GLCanvas' static initialization of default GLProfile into constructor ↵Dan Krisher2011-02-051-3/+1
| | | | to avoid requiring native libraries at class initialization time.
* Fix bug #459 NV/Win7 PDF/caps selectionSven Gothel2011-02-052-8/+24
| | | | | | | | | | | | | 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.
* Fix bug #461 on NV/Win (caps selection)Sven Gothel2011-02-055-25/+28
| | | | | | Allows TestBug461OffscreenSupersamplingSwingAWT to pass on NV/Win7. Root cause was using the requested unfixed caps (onscreen, !pbuffer) instead of the fixed ones.
* Fix for Bug #452Sven Gothel2011-02-034-103/+104
| | | | | | | | | | | | | 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.
* Fix: X11: Allowing FBConfig w/o XVisualInfo for non onscreenSven Gothel2011-02-031-7/+15
|
* Fix: Ensure proper resource initialization (display call)Sven Gothel2011-02-031-35/+34
|
* Reloc TestBug463ScaleImageMemoryAWT.java to common jogl/gluSven Gothel2011-02-021-1/+1
|
* Merge remote branch 'wwalker/bug_461_offscreen_supersampling' into pulledSven Gothel2011-02-021-0/+173
|\
| * Add unit test for bug 461, offscreen supersamplingWade Walker2011-01-261-0/+173
| | | | | | | | | | | | | | 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.
* | Merge remote branch 'wwalker/bug_463_gluScaleImage_memory' into pulledSven Gothel2011-02-022-1/+117
|\ \
| * | Fix bug 463 where gluScaleImage consumes all memoryWade Walker2011-01-252-1/+117
| |/ | | | | | | | | | | | | | | 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.
* | Merge remote branch 'wwalker/bug_459_shader_compilation' into pulledSven Gothel2011-02-021-0/+162
|\ \
| * | Add test case for bug 459 shader compile failureWade Walker2011-01-161-0/+162
| |/ | | | | | | | | | | | | 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.
* | Merge remote branch 'wwalker/bug_417' into pulledSven Gothel2011-02-023-1/+147
|\ \
| * | Fixed to work properly in the Ant junit.run.* taskswwalker2011-01-041-10/+7
| | | | | | | | | | | | | | | | | | 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.
| * | Added unit test for bug 417; bug already gonewwalker2010-12-313-1/+150
| |/ | | | | | | | | | | 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.
* | Fixed bug 450 (unrendered right side of GLJPanel in Gears)wwalker2011-02-022-1/+164
| | | | | | | | | | | | | | | | 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.
* | Fix GLProfile tests: default is max-fixed-pipeline, use GL2 insteadSven Gothel2011-02-023-43/+18
| |
* | Fix SWT tests in due to changes, minor linux fixSven Gothel2011-02-023-104/+88
| |