summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add cfg option 'DropUniqVendorExtensions',Sven Gothel2008-07-063-18/+58
| | | | | | | | | | | | | to drop all non unified vendor extensions and defines. Example: DropUniqVendorExtensions AMD DropUniqVendorExtensions ATI DropUniqVendorExtensions NV git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@99 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Simplifying ForceProcAddressGen and LocalProcAddressCallingConvention,Sven Gothel2008-07-061-0/+2
| | | | | | | | | | | | | while adding the generic function name '__ALL__'. This action applies to all generated functions then, hence it lowers the maintenance of the gluegen cfg files. Example: ForceProcAddressGen __ALL__ LocalProcAddressCallingConvention __ALL__ GL_APIENTRY git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@98 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Simplifying ForceProcAddressGen and LocalProcAddressCallingConvention,Sven Gothel2008-07-064-3/+50
| | | | | | | | | | | | | while adding the generic function name '__ALL__'. This action applies to all generated functions then, hence it lowers the maintenance of the gluegen cfg files. Example: ForceProcAddressGen __ALL__ LocalProcAddressCallingConvention __ALL__ GL_APIENTRY git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@97 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Windows-specific problem with locally generated function pointer Kenneth Russel2008-07-069-19/+72
| | | | | | | | | | | | | | typedefs where the calling convention was not specified. Provided new LocalProcAddressCallingConvention directive to allow developer to specify the calling convention on a per-function basis; used this in gl-es1.cfg and gl-es2.cfg. Changed GLEmitter to force the calling convention of the locally typedefed function pointers for OpenGL function name unification to GL_APIENTRY, compatible with OpenGL ES 1 and OpenGL ES 2. Changed generated native glue code to #define GL_APIENTRY appropriately on the desktop. Refactored custom C code. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@96 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed fine javadoc entries for aliased/unified GL functionsSven Gothel2008-07-052-15/+13
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@95 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added fine javadoc entries for aliased/unified GL functionsSven Gothel2008-07-054-13/+71
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@94 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* GL Unification 2nd round.Sven Gothel2008-07-0411-151/+558
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Terminology: ARB Extensions: "GL2", "ARB", "OES", "OML" Vendor Extensions: "EXT", "NV", "ATI", "SGI", "SGIS", "SGIX", "HP", "IBM", "WIN" Pass-1 Unify ARB extensions with the same value Pass-2 Unify vendor extensions, if exist as an ARB extension with the same value. Pass-3 Emit Done: - Unification of GL enumerates - Unification of GL functions - dynamic extension lookup - .. TODO: - Break down GL.java: GL + GL2ES1ES2 (for future GL3, etc) - Add a GL2 small implementation, to only support the GL2ES2 subset, 'GL2SubES2' .. +++ - Fixed X11 build breakage of 'jawt' linkage. - Fixed NEWT native code mouse- and keyevent id's, missed sync while moving them from the bitfield notation. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@93 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed build breakage on Solaris due to recent gluegen-cpptasksKenneth Russel2008-07-031-1/+1
| | | | | | | refactoring git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@92 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed broken java.includes.dir.platform for win32Kenneth Russel2008-07-031-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@91 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* GL Unification 1st round.Sven Gothel2008-07-032-59/+384
| | | | | | | | | | | | | | | | | | Terminology: ARB Extensions: "GL2", "ARB", "OES", "OML" Vendor Extensions: "EXT", "NV", "ATI", "SGI", "SGIS", "SGIX", "HP", "IBM", "WIN" Pass-1 Unify ARB extensions with the same value Pass-2 Unify vendor extensions, if exist as an ARB extension with the same value. Pass-3 Emit TODO: - Break down GL.java enumerations: GL + GL2ES (for future GL3) - Same for function calls .. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@90 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fix broken user defined gluegen.compiler.xml usageSven Gothel2008-07-031-3/+3
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@89 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed accidental breakage due to removal of macosxfat property fromKenneth Russel2008-06-301-8/+8
| | | | | | | gluegen.properties git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@88 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Refactored more C compiler setup into gluegen-cpptasks.xml to make itKenneth Russel2008-06-302-31/+185
| | | | | | | | | | | | | | | | | | | | | easier to build native sources via Ant. Provided new gluegen.cpptasks.setup.compiler target which sets up platform-independent compiler and linker IDs and other properties which can be used in other projects' build files. Refactored JOGL build to use some of these new properties and eliminate duplication; more code savings possible. Added new GLWindow class to Newt implementing GLAutoDrawable to increase code sharing, and supporting making OpenGL calls inside of EventListener callbacks. Moved repaint() method from GLAutoDrawable to AWTGLAutoDrawable. Added WindowEvent and WindowListener interfaces to Newt, currently implemented on Windows and AWT backends (X11 backend would need to support and watch for window resizes -- FIXME added). Refactored common functionality into Newt Event class. Renumbered event IDs to avoid collisions. Fixed potential problems with removing event listeners inside of EventListener callbacks. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@87 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* gluegen.compiler.xml exampleSven Gothel2008-06-251-0/+19
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@86 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* allow preset of os and archSven Gothel2008-06-252-19/+22
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@85 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* OpenGL Composable Pipeline:Sven Gothel2008-06-216-11/+92
| | | | | | | | | | | | | | | | | | | | | | - Using GL.getContext() interface directly - Adding javax.media.opengl.* to imports ProcAddressEmitter, ProcAddressTable - Generated class implements gluegen runtime's ProcAddressTable, to allow generic access to 'getAddressFor(String functionName)' JavaConfiguration, JavaEmitter - NEW: ParentClass <ThisClass> <ParentClass>, to allow the implementing classes to extend a user spec one - NEW: AccessControl type 'PUBLIC_ABSTRACT", to allow a generated impl. class to be abstract. JavaType.getDescriptor() - Throw a meaningfull exception in case of an unknown type, ie a used type/struct, which could not be generated. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@84 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* This commit was manufactured by cvs2svn to create branchFirst Last2008-05-300-0/+0
| | | | | | 'JOGL_2_SANDBOX'. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@83 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added debugging support via -Dgluegen.debug.ProcAddressHelper and Kenneth Russel2008-05-301-0/+44
| | | | | | | -Dgluegen.debug.ProcAddressHelper.prefix git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@82 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added Windows (CE) / ARM to the list of known OS/CPU combinationsKenneth Russel2008-05-301-0/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@81 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Bug fixes to mangling of JNI method names when arrays of compound Kenneth Russel2008-05-291-4/+12
| | | | | | | types are present, and to the new CMethodBindingEmitter.isUTF8Type() git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@80 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Changed implementation of ArgumentIsString to work with wide-character Kenneth Russel2008-05-2710-109/+204
| | | | | | | | | | | | | | null-terminated strings on Windows. Changed Windows dynamic linker to use LoadLibraryW which is the only variant available on Windows CE. Changed GetProcAddress to explicitly named GetProcAddressA; this is implicitly the only variant available on Windows XP. Tested by compiling gluegen-rt.dll for both Windows XP and Windows CE. Also brought dynlink-unix-CustomJavaCode.java in line with modifications that were apparently hand made to the UnixDynamicLinkerImpl and MacOSXDynamicLinkerImpl classes. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@79 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Adding customized gluegen.cpptasks.configure.compiler target.Sven Gothel2008-05-271-2/+5
| | | | | | | | Specify your target in ${user.home}/gluegen.compiler.xml' The enables a user to specify the compiler and linker, including all options. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@78 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added support for passing outgoing arrays of compound types, including Kenneth Russel2008-05-269-53/+193
| | | | | | | | | | | non-const arrays of compound types and the associated copies back to Java, in support of constructs like eglChooseConfig. Generated code has been compiled but not yet tested. Refactorings to allow generated glue code using StructAccessors to work on Java ME / CDC / FP + JSR-239 NIO, as well as Java SE. Bug fix to ForceProcAddressGen. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@77 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed build breakage on non-Windows platforms due to recent changes toKenneth Russel2008-05-151-11/+18
| | | | | | | support building against CDC/FP bootstrap classes git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@76 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Refactorings to support building JOGL and supporting libraries on Kenneth Russel2008-05-137-16/+433
| | | | | | | Java ME / CDC / FP git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@75 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Issue 5: build: Use system antlr automatically if jpackage-compatible ↵Kenneth Russel2008-04-191-0/+4
| | | | | | | | | | system Added available check of /usr/share/java/antlr.jar. Not fully tested. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@74 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Issue 6: unqualified class names in generated java code Kenneth Russel2008-04-193-15/+15
| | | | | | | | | | Applied and expanded patch from user tck to fully qualify all references to New I/O classes in generated code. Tested by removing Import of java.nio.* from JOGL and JOAL; required modification of the custom Java code for those packages, but otherwise working well. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@73 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Changes for 64-bit Mac OS X from dhale; unclear why things worked earlierKenneth Russel2008-02-232-0/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@72 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Modified gluegen-cpptasks, gluegen.properties and jogl.properties toKenneth Russel2008-02-092-0/+10
| | | | | | | support building 64-bit on Leopard git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@71 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Issue 322: Please add linker option for vc8 win32 build environment ↵Kenneth Russel2007-10-101-0/+1
| | | | | | | | | | when building gluegen. Added requested linker option. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@70 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Changed structure layout for 32-bit Windows to more closely match what Kenneth Russel2007-09-302-16/+19
| | | | | | | | the C compiler produces. More work is needed in this area. Synchronized StructLayout and CPU classes. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@69 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Synced loadLibraryInternal implementation with JNLPAppletLauncher's Kenneth Russel2007-07-211-1/+12
| | | | | | | recommended code git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@68 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Updated NativeLibLoader to work with JNLPAppletLauncherKenneth Russel2007-07-041-1/+19
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@67 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added note (thanks to Andre Onuki) that GlueGen doesn't currently work Kenneth Russel2007-06-291-6/+8
| | | | | | | with ANTLR 3.x git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@66 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed bug in handling of package-private native methods called through Kenneth Russel2007-06-291-4/+10
| | | | | | | procedure addresses git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@65 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added linux / x86 (which is reported by IBM's JDK) as a supported Kenneth Russel2007-06-281-0/+1
| | | | | | | StructLayout platform git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@64 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed build problem with last checkin to make GlueGen runtime packageKenneth Russel2007-06-071-0/+1
| | | | | | | configurable git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@63 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Added GlueGenRuntimePackage to allow people to rename and incorporate Kenneth Russel2007-06-045-3/+30
| | | | | | | those helper classes into their apps git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@62 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* More robust code for direct / indirect buffer checkingKenneth Russel2007-06-031-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@61 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Corrected mismatch in logic deciding const-ness of pointer-to-pointer Kenneth Russel2007-05-121-6/+1
| | | | | | | types uncovered by user Rogue git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@60 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed JOGL Issue 291: native-taglet.properties with links changed to OpenGL SDK Kenneth Russel2007-04-192-0/+0
| | | | | | | Checked in program for generating new native-taglet.properties. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@59 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* - Add a fix (from Ken Russel) for properly parsing negative constants in enumskrishna_gadepalli2007-03-053-3/+13
| | | | | | | | | by adding getAllChildrenText() - Fixed the lineDirective() method in PCPP.java to emit the correct format of the line directive git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@58 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Incorporated fixes from Krishna Gadepalli in handling of enumsKenneth Russel2007-02-271-4/+20
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@57 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed Issue 262: DRIHack problems with ATI and possibly other driversKenneth Russel2007-01-211-0/+27
| | | | | | | | | | | Added support to GlueGen's NativeLibrary class for relative library path names which do not require expansion; for example, "libGL.so.1". Changed the DRIHack to first attempt to open libGL.so.1 instead of "GL", which expanded to "libGL.so". For some reason, this causes ATI's drivers to be picked up properly. Tested with various JOGL demos. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@56 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixes for building with Visual Studio .NET 2003 (Service Pack 1)Kenneth Russel2007-01-031-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@55 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed latent problem with lookup of native libraries using ClassLoaderKenneth Russel2006-12-221-2/+16
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@54 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed bug in OS/CPU detection on Windows/AMD64Kenneth Russel2006-12-081-2/+2
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@53 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Fixed typo in commentKenneth Russel2006-12-041-1/+1
| | | | git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@52 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Removed native code for DRIHack and replaced it with code using theKenneth Russel2006-11-242-1/+13
| | | | | | | | | | | | | | | | | | | | | GlueGen runtime library (specifically the NativeLibrary class). Updated the build.xml, in particular the dist targets, to no longer build or copy this native library. Updated the NativeLibrary class to allow specification of the full path to the library. Removed the GlueGen runtime classes from jogl.jar; these are now expected to reside in gluegen-rt.jar and it is expected that developers will have this on their CLASSPATH. Updated the dist target to include the gluegen-rt native library and jar file. Updated the JOGLAppletLauncher to download and unpack the gluegen-rt-natives jar as well as the jogl-natives jar. Updated the HowToBuild, user guide, and JOGLAppletLauncher documentation for this restructuring. Fixed bug in gluegen-cpptasks.xml in detection of Solaris/SPARCv9 and refactored targets further. Tested on Solaris/x86 so far; further testing and debugging of the nightly builds and applet launcher, and update of the JOGL applet test, to follow. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@51 a78bb65f-1512-4460-ba86-f6dc96a7bf27
* Updated glext.h to current one from khronos.org subversion repository Kenneth Russel2006-11-203-0/+23
| | | | | | | | | including OpenGL 2.1 entry points and definitions. Minor changes to GlueGen and PCPP to allow slightly more complicated #ifdef constructs and new Windows built-in types to parse. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@50 a78bb65f-1512-4460-ba86-f6dc96a7bf27