summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix from user GKW on the JOGL forums for problems reported by Kenneth Russel2004-08-035-81/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | users in JOGL 1.1 betas where the code path for wglChoosePixelFormatARB (supporting full-scene antialiasing) was failing on older cards. The old drivers expect an OpenGL context to be current while the wglChoosePixelFormatARB and associated calls are being made, even though the documentation explicitly states that this is not necessary. GKW's fix creates a native window synchronously (independent of the AWT) and associates an OpenGL context with it which is used to choose pixel formats for other windows on the same GraphicsDevice. Upon VM shutdown, a native message pump is started which causes proper disposal of the native window and its OpenGL contexts. There is currently no bug ID associated with this fix, although it may be a component of completely addressing several open bugs. Also includes a bug fix from GKW and kbr for: Issue 98: Just 1st frame rendering on ATI Radeon This was a race condition between JOGL's automatic discovery that the ATI_WORKAROUND was needed and the creation of the first GLCanvas and associated Animator. The need for disabling the setRenderingThread optimization was computed too late, incorrectly locking out other threads (in particular, the AWT event queue thread) from performing rendering of the component. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@144 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 86: code generation problemKenneth Russel2004-07-151-20/+25
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@139 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 96: Off-by-one error in pixel format selection on WindowsKenneth Russel2004-07-151-2/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@138 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed build problems on Linux after bug fixes to context destructionKenneth Russel2004-07-152-12/+13
| | | | | | | and recreation git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@137 232f8b59-042b-4e1e-8c03-345bb8c30851
* Bug fix to new context destruction / recreation code associated with Kenneth Russel2004-07-091-14/+14
| | | | | | | | | | | | recent checkin for following issues: Issue 59: GLContext Leak Issue 67: Java/Jogl app hangs some systems, not others, during reshape. Issue 69: Error on window resize Issue 89: Losing Backbuffer when Resizing/Moving a window git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@136 232f8b59-042b-4e1e-8c03-345bb8c30851
* fix build breakageGerard Ziemski2004-06-212-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@135 232f8b59-042b-4e1e-8c03-345bb8c30851
* pbuffers have been implemented in Mac OS X jogl port for some time now, ↵Gerard Ziemski2004-06-201-3/+11
| | | | | | regsiter then as avaialable to developers, not just for internal use git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@133 232f8b59-042b-4e1e-8c03-345bb8c30851
* This putback attempts to address the following issues: Kenneth Russel2004-06-1912-32/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue 59: GLContext Leak Issue 67: Java/Jogl app hangs some systems, not others, during reshape. Issue 69: Error on window resize Issue 89: Losing Backbuffer when Resizing/Moving a window The primary change is to support handing off of the display() implementation to the AWT event queue thread via a new class called SingleThreadedWorkaround in the impl package. This was done to cause the AWT's reshape code to execute on the same thread as all other OpenGL rendering without changing the threading model (e.g., Animator and the ability to manually call display()) visible to the end user. This set of changes appears to work around the problems seen on ATI cards with random corruption when resizing animating windows due to multithreading bugs in the drivers. More testing by a larger community will confirm this fix. Currently the workaround is enabled by default on ATI cards. A secondary but related change is to properly destroy the OpenGL context when a heavyweight component is removed from its container. In order to implement the above workaround, it was necessary to override addNotify and removeNotify to properly track whether GLCanvases were realized; at that point it was a fairly small step to properly delete and recreate OpenGL contexts. The previous heuristics which attempted to determine when a heavyweight had been realized have been removed. A new demo, TestContextDestruction, exercises the new functionality. It does still appear to exhibit resource leaks, however; removing and re-adding the GLCanvas from its parent multiple times causes the system to eventually slow down significantly. More work is needed in this area. However, the demo does now execute as opposed to throwing an exception which was the previous behavior. The current code has been tested on Windows on NVidia hardware with all existing demos with the workaround both enabled and disabled, and on ATI hardware with the existing compatible demos with the workaround enabled. The new abstract method in GLContext, destroyImpl(), has been implemented but not yet tested on X11 and Mac OS X. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@132 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed (?) Issue 78: Re-assigning rendering thread causes subsequent ↵Kenneth Russel2004-04-301-30/+85
| | | | | | | | | | | | | | display() to fail Fixed Issue 80: redraw after reshape, swapBuffer() gives Exception Restructured and simplified context handling and optimization in GLContext.invokeGL(). Fixes issue 80 (verified); believe it will also fix issue 78 (unable to verify; no test case). Retested with all demos, some of which rely on the proper functioning of this code. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@131 232f8b59-042b-4e1e-8c03-345bb8c30851
* Incremented version number to 1.1b04Kenneth Russel2004-04-301-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@130 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 79: PBuffers on macintosh fail to glCopyTexSubImage2DKenneth Russel2004-04-293-133/+92
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@128 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed problem identified by William Denniss on JOGL forums where Kenneth Russel2004-04-261-5/+9
| | | | | | | | PIXELFORMATDESCRIPTOR didn't have its size or version fields initialized git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@126 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 77: Creation of dummy GL context fails in some configurationsKenneth Russel2004-04-261-0/+2
| | | | | | | | Applied patch from Yuri Vl. Gushchin to disable auto-redraw and auto-swap buffer modes on dummy GLCanvas. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@125 232f8b59-042b-4e1e-8c03-345bb8c30851
* Applied patches from Yuri Vl. Gushchin on JOGL forums: Kenneth Russel2004-04-261-1/+2
| | | | | | | | - Added KTX_buffer_region to glext.h - Used Dialog instead of Frame for dummy window on Windows git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@124 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 76: Multisampling (FSAA) does not work on ATIKenneth Russel2004-04-262-21/+28
| | | | | | | | Applied patch from Yuri Vl. Gushchin to fetch extensions while dummy context is current. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@123 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed lurking bug in native array copying code generation if more thanKenneth Russel2004-04-231-0/+7
| | | | | | | one array needed to be copied git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@122 232f8b59-042b-4e1e-8c03-345bb8c30851
* Worked around incidence of 4796548 on Mac OS XKenneth Russel2004-04-231-1/+17
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@121 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated webstart jogl.jar to 1.1b02 and bumped version number to 1.1b03Kenneth Russel2004-04-231-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@120 232f8b59-042b-4e1e-8c03-345bb8c30851
* Bumped version number to 1.1b02Kenneth Russel2004-04-221-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@119 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed (?) Issue 75: Dummy window confuses users and maximizing it can cause ↵Kenneth Russel2004-04-221-1/+7
| | | | | | trouble git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@118 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added OpenGL 1.5 support. Updated glext.h, wglext.h, and glxext.h from Kenneth Russel2004-04-223-100/+160
| | | | | | | | | | extension registry; these now include only very few changes relative to the master version. Fixed bugs in GlueGen and PCPP to make it parse the verbatim headers and to emit correct glue code for some newly-exercised constructs like char**. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@115 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed problems in WindowsGLContext and TraceGL pointed out by jonmeyer Kenneth Russel2004-04-222-1/+9
| | | | | | | on JOGL forums git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@114 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated context creation code to unpack GLCapabilities object in JavaKenneth Russel2004-04-212-48/+35
| | | | | | | rather than in C using JNI. Added full-scene antialiasing (FSAA) support. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@113 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 28: All functions that take arrays as parameters should also ↵Kenneth Russel2004-04-214-65/+357
| | | | | | | | | take buffers Fixed Issue 36: glSelectBuffer/glFeedbackBuffer need direct buffers git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@112 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added full-scene antialiasing (FSAA) supportKenneth Russel2004-04-203-43/+61
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@111 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added test to not try to use WGL_ARB_multisample unless it's supportedKenneth Russel2004-04-141-7/+15
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@109 232f8b59-042b-4e1e-8c03-345bb8c30851
* Initial support for multisample / full-scene antialiasing (FSAA); Kenneth Russel2004-04-135-50/+381
| | | | | | | currently on Windows, X11 and other ports to follow git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@108 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Javadoc problemsKenneth Russel2004-04-1213-179/+360
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@107 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Javadoc problemsKenneth Russel2004-04-122-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@104 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed build problems in X11SunJDKReflection.javaKenneth Russel2004-04-091-14/+25
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@98 232f8b59-042b-4e1e-8c03-345bb8c30851
* Intermediate checkin of improved visual selection mechanism. Intended Kenneth Russel2004-04-091-0/+90
| | | | | | | | | | | to fix problems on X11 platforms including inability to choose a visual and lack of multi-head support, as well as to improve the selection algorithm on all platforms by allowing the window system to provide a recommended visual selection. Lays the groundwork for full-scene antialiasing and multihead support on multiple platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@97 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed build problem with fix for Issue 25: Expose swapBuffers(), pleaseKenneth Russel2004-04-092-0/+38
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@95 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 25: Expose swapBuffers(), please Kenneth Russel2004-04-0817-33/+84
| | | | | | | Fixed Issue 31: Make it safe to remove listeners from a GLDrawable while handling an event git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@93 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 68: Window system-specific JAWT classes must implement ↵Kenneth Russel2004-03-152-6/+57
| | | | | | JAWT_PlatformInfo git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@90 232f8b59-042b-4e1e-8c03-345bb8c30851
* Removed debugging printfsKenneth Russel2004-03-151-4/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@89 232f8b59-042b-4e1e-8c03-345bb8c30851
* Multiple pixel format changegregorypierce2004-02-281-1/+1
| | | | | | | | | | Issue number: Obtained from: Submitted by: Reviewed by: git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@83 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated for OSX custom pixel format.gregorypierce2004-02-281-8/+48
| | | | | | | | | | Issue number: Obtained from: Submitted by: Gregory Pierce Reviewed by: git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@82 232f8b59-042b-4e1e-8c03-345bb8c30851
* Initial version 1.0.0-b01djp2004-02-181-0/+104
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@80 232f8b59-042b-4e1e-8c03-345bb8c30851
* Undid previous change which turned out to be incorrect.Kenneth Russel2004-01-301-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@79 232f8b59-042b-4e1e-8c03-345bb8c30851
* Applied bug fix to GLU tesselator from [email protected].Kenneth Russel2004-01-291-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@78 232f8b59-042b-4e1e-8c03-345bb8c30851
* implemented GLJPanel for Mac OS XGerard Ziemski2003-11-1911-83/+157
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@74 232f8b59-042b-4e1e-8c03-345bb8c30851
* use USE_GL_TEXTURE_RECTANGLE_EXT for PBuffers - needed for GLJPanelGerard Ziemski2003-11-081-17/+36
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@72 232f8b59-042b-4e1e-8c03-345bb8c30851
* Print error messages when nsview is not a valid drawable and return NULL ↵Gerard Ziemski2003-11-041-5/+23
| | | | | | from createContext git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@70 232f8b59-042b-4e1e-8c03-345bb8c30851
* Implemented a per-thread GLContext stack, which gives a thread Kenneth Russel2003-11-044-22/+297
| | | | | | | | | | | | | | | knowledge of the OpenGL contexts it has made current and allows a GLDrawable to make its context current recursively as well as allowing a GLEventListener to call another GLDrawable's display() method from within its display(). This mechanism can be used fairly easily to expose swapBuffers in the public API, as has been requested. Updated the demos which had to explicitly call display() on more than one drawable to use the Animator class and to call GLDrawable.display() from within their GLEventListeners' display() methods. Updated documentation. Fixed bugs in gleem's CameraParameters class. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@69 232f8b59-042b-4e1e-8c03-345bb8c30851
* Disabling the context updater for now - not thread safe yet.Gerard Ziemski2003-10-123-2/+29
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@68 232f8b59-042b-4e1e-8c03-345bb8c30851
* Implemented PBuffers (available in >= Panther). Reimplemented window ↵Gerard Ziemski2003-10-127-172/+542
| | | | | | resizing using update listener git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@67 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added contribution from user GKW on community.java.net forums to fixKenneth Russel2003-09-052-31/+38
| | | | | | | | | pixel format selection for GLJPanel on Win32 by using ChoosePixelFormat rather than DefaultGLCapabilitiesChooser. Modified dist targets to include Cg native libraries. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@62 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added Gerard Ziemski's new sources for faster dynamic symbol lookup onKenneth Russel2003-09-052-35/+42
| | | | | | | Mac OS X. Removed workarounds for earlier JAWT bugs on OS X. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@60 232f8b59-042b-4e1e-8c03-345bb8c30851
* Applied bug fix to GLU tesselator supplied by Pepijn Van Eeckhoudt.Kenneth Russel2003-08-271-25/+25
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@59 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Mac OS X build after recent JAWT changes in 10.3 (which areKenneth Russel2003-08-241-0/+1
| | | | | | | | | | apparently going to be brought back to the 10.2 Java on OS X as well). Renamed host.properties to jogl.properties and changed build to look for this file in user's home directory to avoid needing to always change a file that is in the repository. Updated build documentation. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@58 232f8b59-042b-4e1e-8c03-345bb8c30851