Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'master' of git://github.com/mbien/gluegen into freebsd-fixes | Mark Rothwell | 2010-06-26 | 2 | -60/+20 |
|\ | |||||
| * | another round of ProcAddressTable refactoring. | Michael Bien | 2010-06-20 | 1 | -58/+18 |
| | | | | | | | | | | | | | | - moved getAddressFor() from generated table to ProcAddressTable - added initEntry() to e.g. eagerly initialize one single entry (e.g. clGetExtensionFunctionAddress which must be available first) - several utility methods mostly usefull for debugging - cleanup | ||||
| * | added 'intptr_t' to the list of PointerBuffer candidates. | Michael Bien | 2010-06-18 | 1 | -2/+2 |
| | | | | | | | | TODO consider making this configurable. | ||||
* | | Add FreeBSD amd64 struct layout | Mark Rothwell | 2010-06-26 | 1 | -0/+1 |
|/ | |||||
* | fixed handling of size_t which was broken since the introduction of Int64Buffer. | Michael Bien | 2010-05-31 | 1 | -0/+4 |
| | |||||
* | Refactored JavaType to use enums. | Michael Bien | 2010-05-30 | 1 | -34/+30 |
| | |||||
* | Fix: Prepare CMethodBindingEmitter for struct methods as well | Sven Gothel | 2010-05-25 | 2 | -26/+23 |
| | |||||
* | Refactored ProcAddressTable generation. | Michael Bien | 2010-04-24 | 2 | -9/+16 |
| | | | | | - ProcAddressTable is now the common superclass for all tables - Removed ProcAddressHelpers and added FunctionAddressResolver extension mechanism | ||||
* | Add emitting is|get GL4|GL4bc | Sven Gothel | 2010-04-15 | 1 | -0/+4 |
| | |||||
* | gluegen imports now com.jogamp.common.nio.* and java.nio.* instead of using ↵ | Michael Bien | 2010-04-08 | 3 | -38/+45 |
| | | | | FQCN in emitted files. | ||||
* | StringBuffer -> StringBuilder in Methodbinding | Michael Bien | 2010-04-08 | 1 | -34/+38 |
| | |||||
* | fixed a bug introduced in commit 2fe517b9a2e1a680b50c7e1273897495800c5350 / ↵ | Michael Bien | 2010-04-01 | 1 | -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 Bien | 2010-03-31 | 3 | -103/+105 |
| | |||||
* | Merged with latest of mbien | Sven Gothel | 2010-03-31 | 18 | -2953/+2949 |
|\ | |||||
| * | introduced com.jogamp.common.{nio,os} packages and moved some classes. | Michael Bien | 2010-03-31 | 4 | -9/+15 |
| | | |||||
| * | refactoring and code cleanup in gluegen.opengl and gluegen.procaddress package. | Michael Bien | 2010-03-31 | 12 | -2784/+2716 |
| | | |||||
| * | replaced int-flags with enums + code cleanup. | Michael Bien | 2010-03-31 | 2 | -84/+54 |
| | | |||||
| * | implemented better logging using java.util.logging. | Michael Bien | 2010-03-31 | 5 | -86/+176 |
| | | |||||
* | | Buffer heritage added. Migrated old runtime tests. | Sven Gothel | 2010-03-31 | 2 | -82/+0 |
|/ | |||||
* | http://www.jogamp.org/bugzilla/show_bug.cgi?id=389 | Sven Gothel | 2010-03-30 | 3 | -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 conflicts | Sven Gothel | 2010-03-29 | 7 | -46/+46 |
|\ | |||||
| * | renamed BufferFactory into Buffers. | Michael Bien | 2010-03-29 | 6 | -44/+44 |
| | | |||||
| * | moved several common utility methods from JOGL's BufferUtil to GlueGen's ↵ | Michael Bien | 2010-03-29 | 2 | -2/+2 |
| | | | | | | | | BufferFactory. | ||||
* | | New Int64Buffer type, which is being used for gluegen 'long *' | Sven Gothel | 2010-03-29 | 3 | -12/+26 |
| | | |||||
* | | Merge CPU to Platform | Sven Gothel | 2010-03-28 | 5 | -9/+9 |
|/ | |||||
* | Merge with mbien's 2ea8c93d5fd27207872b97c964e3f8af5ac850c6 | Sven Gothel | 2010-03-28 | 28 | -2899/+21 |
|\ | |||||
| * | com.sun.opengl -> com.jogamp.opengl. | Michael Bien | 2010-03-27 | 1 | -1/+1 |
| | | |||||
| * | renamed com.sun.gluegen.runtime -> com.jogamp.gluegen.runtime. | Michael Bien | 2010-03-27 | 28 | -2898/+20 |
| | | |||||
* | | http://www.jogamp.org/bugzilla/show_bug.cgi?id=389 | Sven Gothel | 2010-03-28 | 7 | -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 Bien | 2010-03-24 | 1 | -290/+301 |
| | |||||
* | fixed regression in constant emission where a type suffix (e.g. 'f') was ↵ | Michael Bien | 2010-03-22 | 2 | -4/+14 |
| | | | | | | illegally added after a closing bracket. added testcase. | ||||
* | Drop PointerBuffer.wrapNative2Java(..) | Sven Gothel | 2010-03-19 | 3 | -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 Bien | 2010-03-12 | 1 | -1/+9 |
| | |||||
* | PCPP supports now simple macros. | Michael Bien | 2010-02-20 | 2 | -20/+34 |
| | | | | fixed 'deprecated API' warnings in GlueGen. | ||||
* | better exception handling in GlueGen. | Michael Bien | 2010-02-20 | 2 | -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 Bien | 2010-02-12 | 1 | -1/+2 |
| | |||||
* | added support for arrays in generated StructAccessors. | Michael Bien | 2010-02-12 | 4 | -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 Bien | 2010-02-03 | 1 | -47/+46 |
| | | | | a few 'introduce variable' refactorings for argument names. | ||||
* | PointerBuffer supports now 32bit architectures. | Michael Bien | 2010-01-19 | 2 | -18/+39 |
| | |||||
* | is32Bit field is now immutable to help hotspot with inlining. | Michael Bien | 2010-01-18 | 1 | -41/+27 |
| | | | | code cleanup. | ||||
* | fixed off-by-one bug in put and get. | Michael Bien | 2010-01-12 | 2 | -6/+24 |
| | | | | | implemented method chaining pattern. added position(int pos) method. | ||||
* | fixed emitted code for buffer-array mixing. | Michael Bien | 2010-01-12 | 4 | -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 Bien | 2009-12-02 | 18 | -563/+647 |
| | | | | com.sun.gluegen.opengl packages. | ||||
* | Code cleanup. Ported package com.sun.gluegen to java 5 language level. | Michael Bien | 2009-12-01 | 18 | -644/+624 |
| | |||||
* | temporary workaround in BufferFactory.isDirect(). Changed behavior to return ↵ | Michael Bien | 2009-11-30 | 2 | -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 Bien | 2009-11-11 | 1 | -69/+85 |
| | | | | naming conventions. | ||||
* | Add GL3bc to OpenGL composable pipelineAwayFromSun | Sven Gothel | 2009-10-18 | 1 | -0/+2 |
| | |||||
* | String isEmpty() is Java 1.6 - replaced | Sven Gothel | 2009-10-13 | 1 | -1/+1 |
| | |||||
* | defines with constant but more complex expressions are now no longer ignored ↵ | Michael Bien | 2009-10-08 | 3 | -35/+137 |
| | | | | (e.g #define CL_FP_FMA (1 << 5)). | ||||
* | gluegen.jar compiles now with source=1.5 classfile version (However, ↵ | Michael Bien | 2009-10-08 | 2 | -99/+103 |
| | | | | | | gluegen-rt.jar still uses 1.4). generified classes in pcpp package and removed warnings (java 5 cleanup). |