aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Issue 54: No GL listener callbacks when setting render thread before ↵Kenneth Russel2005-01-281-0/+19
| | | | | | | | | | | | | | | | | | | | window is visible The issue (or a related one) is still present in the current JOGL build, although the symptom was different: a deadlock upon startup of the application. When the OpenGL context is created in the WindowsOnscreenGLContext implementation, it causes Component.getGraphicsConfiguration() to be called, which causes the AWT tree lock to be grabbed. Under some circumstances, another thread can already hold the AWT tree lock and call GLContext.invokeGL(), which leads to a classic deadlock. Resolved this by eagerly grabbing the tree lock under some circumstances (not all the time) before entering the synchronized invokeGL in (only) the Windows onscreen context implementation. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@193 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed build breakage on Windows and other non-X11 platforms after Kenneth Russel2005-01-282-0/+5
| | | | | | | changes to make X11 build work on 64-bit platforms git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@192 232f8b59-042b-4e1e-8c03-345bb8c30851
* Incorporated copies of JavaOne talk slides because of registration Kenneth Russel2005-01-284-8/+5
| | | | | | | issues at other web sites git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@191 232f8b59-042b-4e1e-8c03-345bb8c30851
* Partial fix for Issue 88: Add Linux amd64 support to JOGLKenneth Russel2005-01-2710-13/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The stub_includes headers and GlueGen config files have been changed to make X identifiers and similar values appear to Java to be 64-bit values on all platforms, rather than changing between 32-bit and 64-bit values depending on the architecture. This allows the shared Java code in the JOGL X11 implementation to work on both 32- and 64-bit architectures, which is an important step toward having complete 64-bit support in JOGL. Compared to the suggested patch, there is no longer a need to duplicate the sources in net.java.games.jogl.impl.x11 because the Java sources are now 64-bit clean. The change to use dlsym on Linux/AMD64 instead of glXGetProcAddressARB has been conditionalized under a run-time flag. Most of the build.xml and all of the GlueGen changes were incorporated unchanged. Thanks to the original authors of the patch for this work. At this point "ant linux.amd64" should build a working JOGL. However, it can not yet be incorporated into the distribution's platform- independent jogl.jar; in order to do this, the generation of the StructAccessors for the JAWT and some other X11 data structures by GlueGen will need to be conditionalized depending on the platform so that the 32-bit versions go in one directory, the 64-bit versions in another, and a run-time check is done to determine which version to instantiate. There are also a few remaining cleanups to generated glue code such as net.java.games.jogl.impl.x11.GLX.XGetVisualInfo(), which needs to be made platform-independent by calling the XVisualInfo.size() accessor rather than hardwiring in the size of the data structure (although the real solution will probably need to be more complicated since there will probably be two XVisualInfo implementations in the jar file). git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@190 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed incorrect typedef of jint to long; is now intKenneth Russel2005-01-273-3/+3
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@189 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 106: JOGL fails to startup on Inter extreme graphics hardware - ↵Kenneth Russel2005-01-271-37/+48
| | | | | | Exception with wglGetPixelFormatAttribivARB git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@188 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added definitions for GL_EXT_framebuffer_object to glext.hKenneth Russel2005-01-201-0/+128
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@187 232f8b59-042b-4e1e-8c03-345bb8c30851
* better header for intptr_t on Mac OS XGerard Ziemski2004-12-274-4/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@186 232f8b59-042b-4e1e-8c03-345bb8c30851
* make sure we include header defining intptr_t, so that we build on Mac OS XGerard Ziemski2004-12-274-0/+9
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@185 232f8b59-042b-4e1e-8c03-345bb8c30851
* Initial incomplete GLU NURBS port under net.java.games.jogl.impl.nurbs Kenneth Russel2004-12-2013-0/+3485
| | | | | | | and a small README about the procedures being used during the port git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@180 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 123: Use of "enum" as variable name should be eliminated in JOGLKenneth Russel2004-12-071-3/+3
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@179 232f8b59-042b-4e1e-8c03-345bb8c30851
* Patched jogl.jar for 1.1b07 with bug fix for missing GLU projection Kenneth Russel2004-11-211-0/+0
| | | | | | | routines pointed out by fazekaim on the JOGL forums git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@178 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed bug pointed out by fazekaim on the JOGL forums where the Kenneth Russel2004-11-211-0/+43
| | | | | | | | prototypes for the manually-implemented GLU projection routines were not in the GLU interface. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@177 232f8b59-042b-4e1e-8c03-345bb8c30851
* Upgraded JOGL and JOGL demo webstart jars to 1.1 b07.Kenneth Russel2004-11-206-1/+1
| | | | | | | Upgraded version number to 1.1 b08. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@176 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed bug pointed out by art in the JOGL forums where cap of sphere Kenneth Russel2004-11-191-1/+1
| | | | | | | was not being drawn if filled and untextured. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@175 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added files missed in recent GLU putbackKenneth Russel2004-11-194-0/+1891
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@174 232f8b59-042b-4e1e-8c03-345bb8c30851
* Conditioned ATI_WORKAROUND notice on jogl.verbose system propertyKenneth Russel2004-11-191-1/+3
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@173 232f8b59-042b-4e1e-8c03-345bb8c30851
* Partial fix for Issue 42: Problems invoking GLU functions Kenneth Russel2004-11-186-17/+187
| | | | | | | | | | | Incorporated the LWJGL team's port of the GLU quadric and projection routines to be able to eliminate calls to the native GLU library for these cases, which was problematic on certain Linux distributions. Still need to port at least some of the mipmap routines and the NURBS tesselator. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@172 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 22: GLException hides user exception Kenneth Russel2004-11-181-7/+33
| | | | | | | | | | | | The central try/finally cause in GLException.invokeGL() called GLContext.free() after catching and rethrowing the end user's exception from the GLEventListenerdisplay() routine, which caused the end user's exception to be overwritten with the internal GLException. Fixed this by initializing the cause of the internal exception, and also continuing to propagate out the end user's exception. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@171 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 119: Dual-head problems on Windows XP Kenneth Russel2004-11-152-4/+5
| | | | | | | | | Added needed synchronization around creation of dummy windows for wglChoosePixelFormatARB calls. Fixed race condition in StaticGLInfo initialization. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@170 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed MinGW build option after conversion to cpptasksKenneth Russel2004-11-081-4/+12
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@169 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated Mac OS X binaries with missing libjogl_cg.jnilibKenneth Russel2004-11-061-0/+0
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@168 232f8b59-042b-4e1e-8c03-345bb8c30851
* libjogl_cg.jnilib was missing in jogl-natives-macosx.jar in dist targetKenneth Russel2004-11-061-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@167 232f8b59-042b-4e1e-8c03-345bb8c30851
* Incremented version number to 1.1 b07Kenneth Russel2004-11-011-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@166 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated JOGL and JOGL demo webstart files to 1.1 b06Kenneth Russel2004-11-015-0/+0
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@165 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 117: Adding glGetUniformLocationARB to gl-common.cfg Kenneth Russel2004-10-291-2/+5
| | | | | | | | | ArgumentIsString directives have been added for the ARB_shader_objects and ARB_vertex_shader routines glGetUniformLocationARB, glBindAttribLocationARB, and glGetAttribLocationARB. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@164 232f8b59-042b-4e1e-8c03-345bb8c30851
* Removed redundant code.gkw2004-10-291-7/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@163 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed build problem on Linux after upgrade to Cg 1.3 beta 2 headersKenneth Russel2004-10-291-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@162 232f8b59-042b-4e1e-8c03-345bb8c30851
* recomputeSingleThreadedWorkaround() erroneously disabled contextgkw2004-10-271-1/+3
| | | | | | | optimization when ATI_WORKAROUND=false. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@161 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added link to JavaOne 2004 JOGL talk slidesKenneth Russel2004-10-271-0/+4
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@160 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added build support for Cg library on Mac OS XKenneth Russel2004-10-262-2/+11
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@159 232f8b59-042b-4e1e-8c03-345bb8c30851
* Removed hacks from cg.h and cgGL.h that are no longer necessary now Kenneth Russel2004-10-223-180/+177
| | | | | | | | that GlueGen understands typedefs more completely. Upgraded cgGL.h to Cg 1.3 beta 2 header; missed in last checkin. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@158 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated Cg definitions to Cg 1.3 beta 2 headersKenneth Russel2004-10-228-333/+625
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@157 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 34: glutWireCube / glutSolidCube generate wrong cubesKenneth Russel2004-10-051-11/+15
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@156 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed missing linker type of suncc in Solaris buildKenneth Russel2004-10-041-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@155 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 71: glMultiDrawElements() is missing Kenneth Russel2004-10-048-143/+231
| | | | | | | | | | | | | | | Added support to GlueGen to handle pointer-to-pointer types for primitive types, like void** and int**. These are exposed as arrays of appropriately-typed direct java.nio Buffers for simplicity. Checks for whether the buffers are direct are performed and null checks for the individual Buffer objects are done as well. Fixed an existing bug in the conversion of outgoing char** arguments in C to String[] in Java where null checks were missing; this showed up as crashes in glShaderSourceARB. Exposed glMultiDrawElements and several other less-common entry points taking void** arguments. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@154 232f8b59-042b-4e1e-8c03-345bb8c30851
* addShutdownHook needed to be wrapped in a call to ↵gkw2004-08-171-2/+8
| | | | | | AccessController.doPrivileged in order to work with applets and Web Start. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@153 232f8b59-042b-4e1e-8c03-345bb8c30851
* Incremented version number to 1.1 b06Kenneth Russel2004-08-061-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@152 232f8b59-042b-4e1e-8c03-345bb8c30851
* Removed debug info from native libraries after CPPTask cutoverKenneth Russel2004-08-053-0/+0
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@151 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed compiler warning in updateContextRegisterKenneth Russel2004-08-051-0/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@150 232f8b59-042b-4e1e-8c03-345bb8c30851
* Removed debug info from native libraries after CPPTask cutoverKenneth Russel2004-08-052-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@149 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated Java Web Start jars to 1.1 b05Kenneth Russel2004-08-045-0/+0
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@148 232f8b59-042b-4e1e-8c03-345bb8c30851
* Added acknowledgment of Alex Radeski to build.xmlKenneth Russel2004-08-041-1/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@147 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Solaris portion of cpptasks port; needed to add a new sunccKenneth Russel2004-08-042-2/+3
| | | | | | | | | compiler/linker type to cpptasks. Updated cpptasks jar file. Filed patch request in ant-contrib project on sourceforge.net; bug ID 1003528. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@146 232f8b59-042b-4e1e-8c03-345bb8c30851
* Incorporated changes by Alex Radeski <[email protected]> from the Kenneth Russel2004-08-043-339/+260
| | | | | | | | | | | JSR-231 expert group to use the Ant CPPTask instead of manual exec'ing of the C compiler from within the build.xml. Substantially simplifies the build.xml; further simplifications (i.e., unused variables) are probably possible. Ported the CPPTask support to Mac OS X and validated it and fixed minor bugs on the supported platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@145 232f8b59-042b-4e1e-8c03-345bb8c30851
* Bug fix from user GKW on the JOGL forums for problems reported by Kenneth Russel2004-08-0310-88/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Upgraded to current glext.h / wglext.h / glxext.hKenneth Russel2004-08-024-42/+221
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@143 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed cygwin / mingw compilation issues pointed out by user cylab on Kenneth Russel2004-07-281-1/+1
| | | | | | | JOGL forums git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@142 232f8b59-042b-4e1e-8c03-345bb8c30851
* Updated Java Web Start binaries for JOGL 1.1 beta 04Kenneth Russel2004-07-165-0/+0
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@141 232f8b59-042b-4e1e-8c03-345bb8c30851
* Fixed Issue 85: Weekly builds / sourceKenneth Russel2004-07-161-0/+7
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@140 232f8b59-042b-4e1e-8c03-345bb8c30851