summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp
Commit message (Collapse)AuthorAgeFilesLines
* Final fix for Java SE Platform query, as negotiated with Michael :)Sven Gothel2010-07-081-18/+7
|
* Merge branch 'master' of github.com:mbien/gluegenSven Gothel2010-07-071-10/+48
|\
| * added slice utility methods to Buffers + rudimentary test.Michael Bien2010-07-041-10/+48
| |
* | Fix: Add missing imports; Add warmup phase to primitive hashmap testSven Gothel2010-07-021-0/+2
| |
* | Moving ClassLoader parameter to the end, which seems to be easier to read.Sven Gothel2010-06-281-7/+7
| |
* | Fix regression of missing JavaSE check in case of security manager; TypoSven Gothel2010-06-261-6/+24
|/
* another round of ProcAddressTable refactoring.Michael Bien2010-06-201-30/+147
| | | | | | | - 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
* pass a ClassLoader to all methods which load classes. (ReflectionUtil)Michael Bien2010-06-171-18/+18
|
* Merge branch 'master' of github.com:sgothel/gluegenMichael Bien2010-06-161-0/+90
|\
| * Adding RunnableTask, generic notifyable Runnable wrapperSven Gothel2010-06-161-0/+90
| |
* | currently no need for a (public) MiscUtils.java.Michael Bien2010-06-102-65/+6
| |
* | refactored Platform. Simplified initializer.Michael Bien2010-06-101-34/+42
|/
* Adding DynamicLibraryBundle utility to bundle Tool and JNI native library ↵Sven Gothel2010-06-107-41/+522
| | | | | | | | | | | | | | loading and lookup Add JNILibLoaderBase.loadLibrary(String libname, boolean ignoreError); DynamicLibraryBundle provides Tool and JNI native library loading and lookup New classes: com.jogamp.common.os.DynamicLibraryBundle com.jogamp.common.os.DynamicLibraryBundleInfo com.jogamp.common.util.MiscUtils.java Change: DEBUG/VERBOSE properties 'gluegen' -> 'jogamp'
* Minor additions to nio/Buffers, util/IntIntHashMap and os/NativeLibrarySven Gothel2010-06-057-0/+45
| | | | | | | | | | | | Buffers add 'float[] getFloatArray(double[])' conversion, ready to replace all JOGL InternalBufferUtil's. NativeLibrary/DynamicLinker add global lookup method allowing Unices and OSX to lookup a symbol globally. However, this is not recommended, due to the lookup costs. Windows is not supported here. Primitive type HashMap's (IntIntHashMap): Added putAll()
* ReflectionUtil: Added callStaticMethod(..)Sven Gothel2010-05-051-8/+48
|
* Fix privileged access (applet)Sven Gothel2010-04-281-9/+16
|
* Fix broken buildSven Gothel2010-04-281-1/+1
|
* small optimizations in fast pimitive HashMaps (Arrays.fill(), local variables).Michael Bien2010-04-271-19/+44
| | | | also improved javadoc and fixed exception messages.
* Fix GLProcAddressResolver regression: Loop through all names until found or ↵Sven Gothel2010-04-271-8/+8
| | | | n/a. Return 0 if not found, no Exception
* Using Buffers.isDirect(), due to Java <= 1.5 limitationsSven Gothel2010-04-261-1/+1
|
* renamed method.Michael Bien2010-04-242-5/+4
|
* Refactored ProcAddressTable generation.Michael Bien2010-04-245-238/+229
| | | | | - ProcAddressTable is now the common superclass for all tables - Removed ProcAddressHelpers and added FunctionAddressResolver extension mechanism
* IntIntHashMap (and friends) is now Iterable. Added iterator testcase.Michael Bien2010-04-211-5/+90
|
* added getKeyNotFoundValue() and some javadoc to IntIntHashMap.Michael Bien2010-04-211-13/+36
|
* Fix Exception Handling ..Sven Gothel2010-04-202-29/+50
|
* Importing files from JOGL (preserving history)Sven Gothel2010-04-195-34/+221
| | | | | | | | | git mv src/nativewindow/native/JVM_Tool.c src/native/common/JVM_Tool.c git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/NativeLibLoaderBase.java src/java/com/jogamp/common/jvm/JNILibLoaderBase.java git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/jvm/JVMUtil.java src/java/com/jogamp/common/jvm/JVMUtil.java git mv src/nativewindow/classes/com/jogamp/nativewindow/impl/NWReflection.java src/java/com/jogamp/common/util/ReflectionUtil.java Adding own JogampRuntimeException and Debug class
* Added keyNotFoundValue semantics, for primitve types it defaults to -1 now.Sven Gothel2010-04-191-3/+17
|
* Moving imported files to proper placeSven Gothel2010-04-193-0/+470
|
* merged LongInt with IntIntHashMap.Michael Bien2010-04-152-206/+21
| | | | IntIntHashMap is now the single template used for all other maps.
* added Simon Goller to @author list in LongIntHashMap und LongIntHashMapTest.Michael Bien2010-04-121-0/+3
|
* IntIntHashMap changed to LongIntHashMap.Simon Goller2010-04-121-0/+196
|
* annotated certain token in IntIntHashMap for text substitution.Michael Bien2010-04-081-19/+20
| | | | build generates now via text substitution IntLong- and IntObjectHashmap in the pre-build phase.
* initial import of IntIntHashmap + JUnitTest including a benchmark.Michael Bien2010-04-081-0/+195
|
* http://jogamp.org/bugzilla/show_bug.cgi?id=393Sven Gothel2010-04-081-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed junit test: test1 - Create seperate native libraries to reflect a real world example: test1 - the library to bind to (no more declaring __stdcall @nn functions) BindingTest1p1 - the dynamic fixed linkage binding test1p1, references dynamic library test1 at linktime. BindingTest1p2 - the dynamic runtime linkage binding test1p2, loads dynamic library test1 at runtime. Generic: - gluegen-cpptasks-base.xml - target 'gluegen.cpptasks.detect.os' Set new property 'system.env.library.path' DYLD_LIBRARY_PATH (macosx) LD_LIBRARY_PATH (unix) PATH (windows) - target 'gluegen.cpptasks.striplibs' Strips the symbols out of the native libraries in case c.compiler.debug is false. Maybe configured with the properties: c.strip.tool, c.strip.args - Using system.env.library.path in junit call to find the test1 library in case of runtime linkage and lookup (test1p2). - Use gluegen.cpptasks.striplibs for all native libs .. - Added macosx32 in analogy to macosx64, both defaults to true now - com.jogamp.common.os.WindowsDynamicLinkerImpl:lookupSymbol() - Added lookup for __stdcall @nn (stepping alignment 4, max-args: 12) in case no undecorated __cdecl symbol is found. Fixed Windows platform: - Use proper path.seperator on Windows. - test1.dll needs proper soname inside for fixed linkage (test1p1) hence the output name must be test1.dll, not libtest1.so +++ http://jogamp.org/bugzilla/show_bug.cgi?id=394 Fix MacOsX platform: The commit of cpptasks.jar, git hash 129e783741d91e9ee5cd7da5d5c962c32ec96b0b, broke the universal binary build on MacOSX. The above change used cpptasks-1.05b with a few patches in regards to crosscompilation, but missed one, which accepts the '-arch' argument for GccLinker undecorated. The new cpptasks.jar is vanilla 1.05b + cpptasks-1.0b5-darwin-patch.diff, the latter a more refined one. This version accepts the '-arch' argument undecorated on the darwin platform. +++
* Fix 32bit masking / testsSven Gothel2010-04-013-3/+4
|
* Merged with latest of mbienSven Gothel2010-03-3120-30/+92
|\
| * introduced com.jogamp.common.{nio,os} packages and moved some classes.Michael Bien2010-03-3118-27/+32
| |
| * introduced internal NativeBuffer interface, this can be made public as soon ↵Michael Bien2010-03-303-2/+50
| | | | | | | | | | | | we move to java language level 5. removed accidentally commited verbose javac property in build-junit.xml.
* | Buffer heritage added. Migrated old runtime tests.Sven Gothel2010-03-318-228/+288
|/
* http://www.jogamp.org/bugzilla/show_bug.cgi?id=392Sven Gothel2010-03-301-0/+52
| | | | | | | | | | | | | | | | | | 32bit/64bit values and arrays are misrepresented - PointerBuffer: Adding methods PointeRBuffer referenceBuffer(int index, Buffer data) PointeRBuffer referenceBuffer(Buffer data) Buffer getReferencedBuffer(int index) Buffer getReferencedBuffer() Adding a reference of a given direct Buffer to this pointer buffer, and retrieving a previously referenced direct Buffer. This allows a more convenient handling of PointerBuffer with the user API's ..
* Merge branch 'master' of github.com:mbien/gluegenSven Gothel2010-03-301-5/+30
|\
| * added sizeOfBufferElem(Buffer buf) to Buffers.Michael Bien2010-03-291-4/+29
| |
| * made conctructor protected.Michael Bien2010-03-291-1/+1
| |
* | http://www.jogamp.org/bugzilla/show_bug.cgi?id=389Sven Gothel2010-03-302-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-19/+353
|\|
| * renamed BufferFactory into Buffers.Michael Bien2010-03-293-6/+6
| |
| * moved several common utility methods from JOGL's BufferUtil to GlueGen's ↵Michael Bien2010-03-293-9/+343
| | | | | | | | BufferFactory.
* | New Int64Buffer type, which is being used for gluegen 'long *'Sven Gothel2010-03-295-1/+347
| |
* | Merge CPU to PlatformSven Gothel2010-03-285-112/+67
|/
* (part2) merged all cdc_fp special cases into one common superclass for each ↵Michael Bien2010-03-2810-1223/+949
| | | | | | | special case. introduced Platform as utility for querying platform information. special cdc build with cdc_fp bootclasspath temporary dissabled.