summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen
Commit message (Collapse)AuthorAgeFilesLines
* Refactored ProcAddressTable generation.Michael Bien2010-04-242-9/+16
| | | | | - ProcAddressTable is now the common superclass for all tables - Removed ProcAddressHelpers and added FunctionAddressResolver extension mechanism
* Add emitting is|get GL4|GL4bcSven Gothel2010-04-151-0/+4
|
* gluegen imports now com.jogamp.common.nio.* and java.nio.* instead of using ↵Michael Bien2010-04-083-38/+45
| | | | FQCN in emitted files.
* StringBuffer -> StringBuilder in MethodbindingMichael Bien2010-04-081-34/+38
|
* fixed a bug introduced in commit 2fe517b9a2e1a680b50c7e1273897495800c5350 / ↵Michael Bien2010-04-011-7/+8
| | | | | | | hudson build 42. Object local PrintWriter was used instead of method local after an attempt to prevent the very same bug...
* fixed generated imports rudimentary (not DRY).. cleanup in work.Michael Bien2010-03-313-103/+105
|
* Merged with latest of mbienSven Gothel2010-03-3118-2953/+2949
|\
| * introduced com.jogamp.common.{nio,os} packages and moved some classes.Michael Bien2010-03-314-9/+15
| |
| * refactoring and code cleanup in gluegen.opengl and gluegen.procaddress package.Michael Bien2010-03-3112-2784/+2716
| |
| * replaced int-flags with enums + code cleanup.Michael Bien2010-03-312-84/+54
| |
| * implemented better logging using java.util.logging.Michael Bien2010-03-315-86/+176
| |
* | Buffer heritage added. Migrated old runtime tests.Sven Gothel2010-03-312-82/+0
|/
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=389Sven Gothel2010-03-303-13/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32bit/64bit values and arrays are misrepresented - PointerBuffer is used to map 64bit integer values, which is illegal due to the latest PointerBuffer changes, where the underlying ByteBuffer is either 32bit wide or 64bit wide (in respect to the pointer size). The PointerBuffer semantic itself is correct, but no more suitable to represent 64bit values and arrays. A Int64Buffer (LongBuffer does not exist in CDC/CVM patch) should be used instead. - Determine use of Int64Buffer and PointerBuffer Assuming the 1st step being solved, it has to determined for which cases gluegen shall map a type to a PointerBuffer. All pointer pointer types, regardless of a Opaque mapping, ie: +++ typedef struct __MYAPIConfig * MYAPIConfig; Opaque long MYAPIConfig void foo(MYAPIConfig * ptrarray); +++ The argument 'ptrarray' must be represented as a PointerBuffer otherwise data is misrepresented in case: - 32bit machines _and_ - array semantics - more than one value is being used Impl: java/com/sun/gluegen/JavaEmitter.java: - Checks ptr-ptr for Opaque values - Returns PointerBuffer mapping for ptr-ptr types - Allow PointerBuffer being mapped as String[] Very elaborated tests .. :) ++++++++++++ Misc Changes: - Added <Type>.put(<Type>Buffer src) for Int64Buffer/PointerBuffer
* Resolved conflictsSven Gothel2010-03-297-46/+46
|\
| * renamed BufferFactory into Buffers.Michael Bien2010-03-296-44/+44
| |
| * moved several common utility methods from JOGL's BufferUtil to GlueGen's ↵Michael Bien2010-03-292-2/+2
| | | | | | | | BufferFactory.
* | New Int64Buffer type, which is being used for gluegen 'long *'Sven Gothel2010-03-293-12/+26
| |
* | Merge CPU to PlatformSven Gothel2010-03-285-9/+9
|/
* Merge with mbien's 2ea8c93d5fd27207872b97c964e3f8af5ac850c6Sven Gothel2010-03-2828-2899/+21
|\
| * com.sun.opengl -> com.jogamp.opengl.Michael Bien2010-03-271-1/+1
| |
| * renamed com.sun.gluegen.runtime -> com.jogamp.gluegen.runtime.Michael Bien2010-03-2728-2898/+20
| |
* | http://www.jogamp.org/bugzilla/show_bug.cgi?id=389Sven Gothel2010-03-287-320/+163
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mixed types in generated code are functioning now, even though not all permutations are generated - still. However, this patch merges the indirect object passing, wheather it is a primitive array or an indirect NIO buffer, incl. PointerBuffer. This allows the usage of only one JNI functions for all combinations. Only in case of NIODirectOnly, the simplified direct only '0' variation is created - otherwise the parametrized '1' variant. The junit tests proves the implementation and almost completes the gluegen junit tests coverage for JavaEmitter and ProcAddressEmitter. Impact/Result: - Working mixed array types - JOGL GL2 native library shrunk around 30% - Simplified gluegen code - Almost complete gluegen junit tests TODO: Complete permutations of array/NIO arguments, if desired. ++++ Misc changes: - NativeLibrary implements DynamicLookupHelper: lookupFunction() -> dynamicLookupFunction()
* seperated cli processing from main logic.Michael Bien2010-03-241-290/+301
|
* fixed regression in constant emission where a type suffix (e.g. 'f') was ↵Michael Bien2010-03-222-4/+14
| | | | | | illegally added after a closing bracket. added testcase.
* Drop PointerBuffer.wrapNative2Java(..)Sven Gothel2010-03-193-64/+40
| | | | | | in favor of a simple PointerBuffer.wrap(..), due to the new semantics, ie internal integer/long presentation. Fixed the javame code in this regard.
* fixed JavaEmitter to support unsigned defines.Michael Bien2010-03-121-1/+9
|
* PCPP supports now simple macros.Michael Bien2010-02-202-20/+34
| | | | fixed 'deprecated API' warnings in GlueGen.
* better exception handling in GlueGen.Michael Bien2010-02-202-127/+256
| | | | WIP: refactored PCPP to implement macros, next step is to replace StreamTokenizer with Scanner (we need a propper look ahead).
* junit test code cleanup and some build preperations for hudson.Michael Bien2010-02-121-1/+2
|
* added support for arrays in generated StructAccessors.Michael Bien2010-02-124-39/+198
| | | | | Specifying JavaClass or JavaImplClass is no longer a requirement. It is now possible to generate StructAccessors from c headers without emitting any other binding code (force with EmitStruct <name>).
* generated pointer variable names have now a more descriptive name.Michael Bien2010-02-031-47/+46
| | | | a few 'introduce variable' refactorings for argument names.
* PointerBuffer supports now 32bit architectures.Michael Bien2010-01-192-18/+39
|
* is32Bit field is now immutable to help hotspot with inlining.Michael Bien2010-01-181-41/+27
| | | | code cleanup.
* fixed off-by-one bug in put and get.Michael Bien2010-01-122-6/+24
| | | | | implemented method chaining pattern. added position(int pos) method.
* fixed emitted code for buffer-array mixing.Michael Bien2010-01-124-17/+27
| | | | | removed workaround in BufferFactory since it is no longer needed. small code cleanup (generator java 5 migration).
* continued with code cleanup in com.sun.gluegen.cgram and ↵Michael Bien2009-12-0218-563/+647
| | | | com.sun.gluegen.opengl packages.
* Code cleanup. Ported package com.sun.gluegen to java 5 language level.Michael Bien2009-12-0118-644/+624
|
* temporary workaround in BufferFactory.isDirect(). Changed behavior to return ↵Michael Bien2009-11-302-4/+4
| | | | | | false with null as parameter to workaround buffer/array mixing bug. Should be revisited to improve performance.
* modified JavaEmitter to generate struct accessor objects with better java ↵Michael Bien2009-11-111-69/+85
| | | | naming conventions.
* Add GL3bc to OpenGL composable pipelineAwayFromSunSven Gothel2009-10-181-0/+2
|
* String isEmpty() is Java 1.6 - replacedSven Gothel2009-10-131-1/+1
|
* defines with constant but more complex expressions are now no longer ignored ↵Michael Bien2009-10-083-35/+137
| | | | (e.g #define CL_FP_FMA (1 << 5)).
* gluegen.jar compiles now with source=1.5 classfile version (However, ↵Michael Bien2009-10-082-99/+103
| | | | | | gluegen-rt.jar still uses 1.4). generified classes in pcpp package and removed warnings (java 5 cleanup).
* Add <br> in commentOpenGL_3_2_ReadyMIPS_PORTSven Gothel2009-08-052-2/+2
|
* Fix: Remove PFD_ defines. Add GL Option: AllowNonGLExtensions <bool> to ↵Sven Gothel2009-08-054-21/+41
| | | | allow non GL extensions to be passed. Allow ifndef/define pattern to have any characters at the end
* Fix: Allow all constanst defined by enums; Add PFD_ defines.Sven Gothel2009-08-054-4/+18
|
* Fix: Add unsigned qualifier, CGL and GLUSven Gothel2009-08-051-4/+4
|
* Cleanup for a better OpenGL 3.2 integration,Sven Gothel2009-08-0518-116/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for subsuming extensions: - Allow RenameExtensionIntoCore generate duplicate names, ie those will not be generated. - Add proper comment showing the extension of the symbol. - Fail if no 'GLHeader' is specified, but we are processing a GL/ProcAddress config - Fail if a GL function is not part of an extension MethodBinding, ConstantDefinition cleanup: - getName() returns the renamed name - getOrigName() returns the original - getAliasedNames() returns the aliased ones MethodBinding: - Change: equals() operates on renamed name - Add: hashCode() function - same criteria as equals() Impact: - All config options etc shall trigger with the renamed name, but ignore, rename etc. - Generated Java impl. uses the renamed base name as well Change: emitDefine() uses the ConstantDefinition Add: JavaConfiguration: dumpRenames() Change JavaConfiguration.shouldIgnoreInInterface/Impl(): - respect the renamed symbol name as well Change JavaEmitter.emitFunctions(): - only emit a generated MethodBinding once, therefor store emitted method bindings in a HashSet Fix BuildStaticGLInfo: - Allow white space at the end of #ifndef and #define - Trim strings - Allow 'const' qualifier in function pattern Fix GLEmitter: - Fail if no 'GLHeader' is specified, but a RenameIntoCore option .. - Don't emit marker defines, marking an extension (ie not part of an extension) Fix GLJavaMethodBindingEmitter: - Fail if a GL function is not part of an extension Fix PCPP: - Pass constant type qualifiers for hex-constants: 'l' 'L' ... Fix ProcAddressEmitter: - Operate on the aliased/renamed name for querying ProcAddress usage and generating code.
* OpenGL: Add comment: Part of <extension>Sven Gothel2009-08-023-3/+41
|
* Retain interface order in Custom PipelineSven Gothel2009-08-011-4/+18
|