aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl
Commit message (Collapse)AuthorAgeFilesLines
* Code cleanup: override, imports, StringBuilder, ..Sven Gothel2011-02-262-14/+22
|
* Clean/Fix: Threading CodeSven Gothel2011-02-264-18/+7
| | | | | | - 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-263-9/+9
| | | | | | - 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
* WindowsExternalWGLContext: Tolerate invalid/released hdc (swt, winxp-32bit)Sven Gothel2011-02-221-26/+21
|
* JOGL/X11/AWT: No more need for seperate X11 Display instance if availableSven Gothel2011-02-221-6/+5
|
* NativeWindow ProxySurface Abstraction and lock/unlock Surface cleanupSven Gothel2011-02-2211-118/+41
| | | | | | | | | | | | | - 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
|
* Fix: Java 1.5 warningsSven Gothel2011-02-092-7/+7
|
* 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-09223-533/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-08216-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
|
* Merge remote branch 'wwalker/bug_463_gluScaleImage_memory' into pulledSven Gothel2011-02-021-1/+3
|\
| * Fix bug 463 where gluScaleImage consumes all memoryWade Walker2011-01-251-1/+3
| | | | | | | | | | | | | | | | 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.
* | Fixed bug 450 (unrendered right side of GLJPanel in Gears)wwalker2011-02-021-1/+1
| | | | | | | | | | | | | | | | 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.
* | Bugfix (Bug 464 - TextRenderer useVertexArray was ignored)Domokun2011-02-011-5/+5
| |
* | TextRenderer: Fix imports / Add jogamp licenseSven Gothel2011-02-012-5/+2
| |
* | Fixes the problem of high memory consumption in TextRenderer (single merged ↵Julien Gouesse2011-02-011-6/+39
| | | | | | | | w/o whitespace)
* | JOGL change of default GLProfile order: GL4bc, GL3bc, GL2, GL2GL3, GL4, GL3, ↵Sven Gothel2011-01-315-27/+91
| | | | | | | | GL2ES2, GLES2, GL2ES1, GLES1
* | Fix: In case no shared resource is available, query the GLXVersion.Sven Gothel2011-01-311-0/+5
| |
* | Fix WindowsDummyWGLDrawable: onscreen && !pbufferSven Gothel2011-01-311-1/+0
| |
* | GLCapabilities enhancements: Choosing, All-Available, Data Handling (X11, ↵Sven Gothel2011-01-3128-957/+1652
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 /*<CapabilitiesImmutable>*/ 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
* | Fix: GLX exception message / sorted importsSven Gothel2011-01-312-4/+6
|/
* GLCanvas: lock/sync drawable usage ; remove destroyed refs (context, ↵Sven Gothel2010-12-231-17/+104
| | | | drawable, awtConfig) ; Try create/destroy AbstractGraphicsDevice on EDT
* Cleanup / DebugSven Gothel2010-12-232-3/+2
|
* Always issue GLEventListener's initialization, if provoked by ctx creationSven Gothel2010-12-221-1/+8
|
* Fix WGL bitmap regression while fixing it ↵Sven Gothel2010-12-221-2/+1
| | | | (96a0e0706258824c1dd524d4cbd7682a904b84f4)
* JOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444)Sven Gothel2010-12-193-87/+138
| | | | | | | | | | | | | | | | | 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.
* Adding NVIDIA 'Threaded optimization' workaround/fix at initialization on ↵Sven Gothel2010-12-193-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* GLDrawableFactory: Add getFactory(AbstractGraphicsDevice device)Sven Gothel2010-12-191-1/+20
|
* Fix GLProfile initProfilesForDevice and DEBUG ; Fix JoglVersion.getGLInfoSven Gothel2010-12-192-35/+36
| | | | | | | | 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
* Debug/Cleanup: toString: print base classname only; Misc ..Sven Gothel2010-12-193-4/+12
|
* WindowsWGLContext: Proper var names, misc cleanupSven Gothel2010-12-181-17/+22
|
* convenient internal queries for sharedSven Gothel2010-12-181-0/+12
|
* GLCanvas: init drawable by paint/display makes the init sequence more equal ↵Sven Gothel2010-12-181-1/+3
| | | | for all launch flavors (applet/javaws/..)
* GLProfile: refine docSven Gothel2010-12-181-1/+2
|
* debug node: WindowsDummyWGLDrawableSven Gothel2010-12-171-0/+1
|
* SharedResourceRunner: Expose convenient 'getShared()' w/o creationSven Gothel2010-12-171-0/+5
|