Commit Graph

356 Commits

Author SHA1 Message Date
Michael Pfaff 68e2ca0b76
Part 1/2
- Remove applet
- Remove webstart
- Refactor all generation to the `target` folder
- Remove eclipse-update
- Update java version in `.tool-versions`
- Update `.gitignore`
- Remove unused `res` folder
- Only macOS builds work currently
- TODO: finish the aforementioned changes to all other targets
- `build.sh` runs in headless mode to avoid the focus stealing and
  performance issues on macOS
2022-03-22 21:26:50 -04:00
Michael Pfaff 229a1da41b
Added build script and update minimum versions to Java 1.8 2022-01-05 13:50:35 -05:00
Ioannis Tsakpinis ef5149a3c3 Merge pull request #113 from Blunderchips/master
Fixed typo in the constructor comments
2015-04-27 12:04:47 +03:00
Matthew 'siD' Van der Bijl 589ce0bd5c Fixed typo in the constructor comments
Fixed a typo above one of the constructors in the Vector2f class.
"Constructor for Vector3f." -> "Constructor for Vector2f."
2015-04-27 10:36:27 +02:00
Ioannis Tsakpinis 8cdaf59905 Replace .jnilib with .dylib on OS X with JDK 6. Resolve #100 2014-11-28 13:26:26 +02:00
Ioannis Tsakpinis 76867b161f Merge pull request #54 from qbit/master
enable build on OpenBSD
2014-09-29 20:33:14 +03:00
Ioannis Tsakpinis e08c0fbf56 Finished work on the annotation processing port from apt to javac.
LWJGL now requires JDK 6 or later to build, but will continue to work on Java 5. In this commit: removed native file "last modified time" handling.
2014-09-15 01:45:48 +03:00
Ioannis Tsakpinis e4fc386372 Fixed field/method order so that javac output matches apt output. 2014-09-15 01:31:22 +03:00
Ioannis Tsakpinis d17c19fe01 Restored check that skips generation if the source template has not changed.
Note that javac still always recompiles everything. This makes the build process slower than before (apt was using the already compiled templates as input). Will investigate some other time if this can be mitigated.
2014-09-14 22:04:51 +03:00
Ioannis Tsakpinis 78911cc0d4 Made the javac-based Generator compatible with JDK 6. 2014-09-14 21:59:47 +03:00
Ioannis Tsakpinis 59323ff03f Automatic code reformatting.
Nothing to see here, just a cleanup so that subsequent commits are cleaner.
2014-09-14 17:16:51 +03:00
Ioannis Tsakpinis 774bd17ece Ported annotation processing from apt to javac.
This is a manual merge of request #86 by @b23prodtm. The original patch is fantastic, but as expected has a few issues that will be fixed in subsequent commits.
2014-09-14 17:07:56 +03:00
Ioannis Tsakpinis 1ea14545f6 Simplified pattern matching when stripping types and the 'v' postfix, which fixed a few corner cases. 2014-08-16 15:39:04 +03:00
Ioannis Tsakpinis cb759158e7 Fixed some native compilation warnings. 2014-08-04 22:25:12 +03:00
Philip Whitehouse fd726e545f Fix some straightforward Javadoc problems 2014-05-20 00:05:53 +01:00
Ioannis Tsakpinis c17617175b Workaround to preserve case when checking availability of APPLE OpenCL extensions. 2014-04-02 13:36:25 +03:00
Brian Matzon e7f46b99e2 changed default behavior to not use SecureClassLoader, as it was causing issues since the latest security update 2013-12-02 20:50:04 +01:00
Ioannis Tsakpinis f97ac09641 Removed NondirectBufferWrapper. It was only used in the Cursor constructor and in a way that could cause crashes: Passing heap buffers to both the images and delays arguments would result in both sharing the same direct memory. 2013-10-30 17:20:28 +02:00
Aaron Bieber 27d444ed74 enable build on OpenBSD 2013-10-22 08:00:50 -06:00
kappaOne 248274bace Merge pull request #47 from sashok7241/patch-1
Fix BigEndian issue when reading files with WaveData.java, full credit to sashok7241 for patch.
2013-09-03 03:02:23 -07:00
Ioannis Tsakpinis 1df5d25560 Added support for PointerBuffer parameters to OpenGL. 2013-07-23 01:57:41 +03:00
Ioannis Tsakpinis 3caf672e42 Fixed pointer array init for NIO buffers. 2013-07-22 20:13:01 +03:00
sashok724 fc023b0041 Update WaveData.java
Fix of BigEndian incorrect reading
2013-07-20 15:22:14 -07:00
kappaOne 476dbf74a7 Add equals method to Vector2f, Vector3f and Vector4f. 2013-07-09 17:18:08 +01:00
Ioannis Tsakpinis 5400bb27db Misc fixes and improvements on Windows:
- Cleaned up cl flags and enabled parallel compilation. Native compilation
  is now multiple times faster.
- Fixed all /W3 compilation warnings.
- Changed window flag from WS_CHILDWINDOW to WS_POPUP when Display.setParent
  is used, in an attempt to fix focus-related issues.
2013-01-29 22:53:11 +02:00
Ioannis Tsakpinis 517d6cfb3b Properly escape '_' in native method stubs. 2013-01-01 18:12:53 +02:00
Ioannis Tsakpinis 778765c6de Now generates @Deprecated annotation for deprecated methods. 2012-12-12 19:18:35 +02:00
Ioannis Tsakpinis 1c4dfae74c Fixed duplicate fields in GL References. 2012-11-25 12:01:24 +02:00
kappa1 b59d60c4ba Fix Matrix*f.negate(Matrix*f dest) methods in Matrix2f, Matrix3f and Matrix4f classes. Thx to Jegorex for finding, reporting and providing fix on forum. 2012-09-12 11:29:40 +00:00
kappa1 43426ac8d8 AppletLoader: Fix NumberFormatException when parsing version string on an EA or beta JVM, thx to UltraMoogleMan for spotting and reporting 2012-09-05 22:37:11 +00:00
Ioannis Tsakpinis ad4f4c74eb Restored (most of) the removed methods from the previous commit and added deprecation warnings. 2012-08-19 06:56:25 +00:00
Ioannis Tsakpinis 929817a4eb Added support for OpenGL 4.3 and OpenGL ES 3.0.
Modified the generator process to use relative paths. We were hitting the command line length limit on Windows.
Some extension improvements, fixes and spec updates.
2012-08-07 15:14:03 +00:00
kappa1 afaf86df66 AppletLoader: fixed issue with applets on linux with Java 7 where the natives where LWJGL natives were failing to load. 2012-05-13 13:50:52 +00:00
kappa1 22e0831d8a AppletLoader: fix to ensure a jar file download is attempted 3 times even if it throws some download exception. 2012-05-08 19:38:17 +00:00
kappa1 89a3558e3b AppletLoader: add further checks to prevent Java default caching 2012-04-26 13:19:18 +00:00
kappa1 15d4e8af94 AppletLoader: set all streams that are open to use try/finally blocks to close the streams 2012-04-22 23:05:10 +00:00
kappa1 f575c37815 AppletLoader: add try/finally block to ensure file is closed on exception in the downloadJars(), thx to MatthiasM for pointing it out. 2012-04-22 22:51:47 +00:00
kappa1 f965ff8f83 AppletLoader: add extra urlconnections.setUseCaches(false) as an extra precaution to make sure caching is disabled. 2012-04-22 22:21:41 +00:00
kappa1 d2174850be Update ControllerAdapter in util package to reflect new changes in the Controller interface class (should fix broken build) 2012-04-10 13:23:08 +00:00
kappa1 6e6f5a4ff0 prod nightly server to rebuild LWJGL. 2012-01-17 21:05:13 +00:00
kappa1 54664ef8cb AppletLoader: fix uncaught null pointer exception 2011-11-17 21:41:24 +00:00
Ioannis Tsakpinis ad7769f9c9 Added support for OpenCL 1.2 [UNTESTED] 2011-11-16 14:36:28 +00:00
kappa1 1762fa36b8 AppletLoader: minor tweak to show better update message when checking cache files for changes 2011-11-12 21:31:00 +00:00
kappa1 faefad816c AppletLoader: minor change to provided more information for some error messages. 2011-10-20 10:36:42 +00:00
Ioannis Tsakpinis 0d0ffcbb59 Fixed signatures: CharSequence[] parameters and ByteBuffer returns. 2011-10-13 16:53:53 +00:00
kappa1 67c3452bb4 AppletLoader: create MediaTracker before requesting image in an attempt to fix a logo loading issue. 2011-10-12 22:31:12 +00:00
kappa1 8bc92abf82 AppletLoader: provide a more meaningful error message when certificates do not match. 2011-10-12 22:15:32 +00:00
kappa1 f6b567c5ad AppletLoader: don't output needless lzma.jar is missing message on console unless a lzma file actually being loaded. 2011-10-12 22:07:36 +00:00
Ioannis Tsakpinis dd87468d6f Added @Optional support for AL and GLES. 2011-10-12 17:58:04 +00:00
kappa1 a1563394c6 AppletLoader: add missing JavaDoc for al_lookup_threads, clean up natives if validation on them fails. 2011-10-08 20:33:43 +00:00
kappa1 08eb7c60d9 AppletLoader: apply arielsan's concurrent HTTP requests patch 2011-10-08 18:33:44 +00:00
kappa1 dae790d54f AppletLoader: apply fix/workaround for the double security dialogs issue on OS X 2011-10-06 23:05:06 +00:00
kappa1 0e6da07d54 Minor tweak to appletloader as an attempt to get nightly build server to build natives again. 2011-09-07 18:28:19 +00:00
kappa1 b49eb9db3f update credits 2011-09-03 14:47:11 +00:00
kappa1 085f221fad AppletLoader: somehow removed patch 3559 with last appletloader patch, readded removed code. 2011-08-29 00:54:54 +00:00
kappa1 31305a9410 AppletLoader: implement al_min_jre parameter, various small refactoring, update comments and javadoc. 2011-08-29 00:40:28 +00:00
Ioannis Tsakpinis b333b029bd Fixed GLX extension detection. 2011-08-18 17:13:05 +00:00
Ioannis Tsakpinis 67945fe317 Added unicode support on Windows.
Fixed AL and GLES native stub bindings.
Replaced many GetStringNativeChars usages with a Java implementation.
2011-08-16 22:17:32 +00:00
kappa1 873fed0613 AppletLoader: al_version tag now uses a case insensitive String (instead of float), much nicer for specifying application versions (e.g. "10.3.3.1 Beta"), still backwards compatible too :) 2011-08-14 17:07:23 +00:00
Ioannis Tsakpinis 717334be5a Replaced Arrays.copyof with custom implementation for Java 5 compatibility. 2011-08-13 19:16:58 +00:00
Ioannis Tsakpinis 900eb4e4d2 Added support for cache-line padding and alignment.
Made byteOffset() in MappedField optional.
Misc fixes and improvements.
2011-08-10 16:05:46 +00:00
Ioannis Tsakpinis f3472da2ed CL: Cleaned-up callbacks and object registries.
Mapped: Added .capacity() and .foreach() with default elementCount.
2011-08-02 23:45:19 +00:00
Ioannis Tsakpinis 83c2208aa0 Added support for NV_path_rendering.
Made MappedObjectUnsafe package private.
2011-07-29 11:30:14 +00:00
Ioannis Tsakpinis d3d14b6f3c @MappedType is now optional.
copyTo now only copies (SIZEOF - padding) bytes.
2011-07-24 09:38:46 +00:00
Ioannis Tsakpinis 054a5c5ae9 Added support for volatile keyword. 2011-07-23 22:28:57 +00:00
Ioannis Tsakpinis d0cb1f8c90 Removed sizeof from @MappedType, it's calculated automatically now.
Added padding to @MappedType, defaults to 0.
Added support for @Pointer long fields for easier interaction with pointer data.
2011-07-23 22:02:01 +00:00
Ioannis Tsakpinis 896e363979 Converted sizeof and align to methods.
Override more methods in MappedObject subclasses, foreach is now 4 times faster.
2011-07-22 20:09:01 +00:00
Ioannis Tsakpinis 20b9d3f89f Added support for array access to mapped objects.
Added SpriteShootout test that uses mapped objects.
2011-07-22 02:01:56 +00:00
Ioannis Tsakpinis a9a7067461 Converted GL APIUtil to a per ContextCapabilities instance. 2011-07-16 22:26:46 +00:00
Ioannis Tsakpinis 4a02aed129 More java-side pointer arithmetic.
Fixed pointer cast warning.
2011-07-16 16:42:51 +00:00
Ioannis Tsakpinis 0b0e185f47 Moved all pointer arithmetic to Java code. 2011-07-16 16:05:37 +00:00
Ioannis Tsakpinis c7088cb44f Fixed manual merge error. 2011-07-14 23:11:41 +00:00
Ioannis Tsakpinis b09625557d Implemented .next() with bytecode transformation, 4x faster now.
Made method transformation a bit faster.
2011-07-14 16:54:25 +00:00
Ioannis Tsakpinis 1f305d514a Removed stride and .configure. Mapped object view updates are now 50% faster. [Riven]
org.lwjgl.util.mapped.PrintBytecode is now functional. [Riven]
2011-07-13 22:15:25 +00:00
Ioannis Tsakpinis 0033f1cc95 Made MappedForeach package private (foreach returns Iterable now) and changed next() to go through the bounds check. 2011-07-13 12:44:25 +00:00
Ioannis Tsakpinis bad616d4cb Fixed stackmap and classloading bugs. 2011-07-12 21:30:48 +00:00
Ioannis Tsakpinis 5158d53dec Added bounds check to copyRange. 2011-07-12 20:40:05 +00:00
Ioannis Tsakpinis a75b1dde68 Added friendly error message when a non-static inner class is registered with the transformer. 2011-07-12 19:29:15 +00:00
riven-lwjgl 1e108964cd First attempt at manual computation of stack frames 2011-07-12 18:30:56 +00:00
riven-lwjgl 950b17a8fe Test case showing problems on loading library (64 vs 32 bit) 2011-07-12 17:49:58 +00:00
Ioannis Tsakpinis e174bf3bc8 Changed mapping behavior to be consistent with the LWJGL API; it now starts at the buffer's current .position().
Reverted client JVM warning to use serr instead of LWJGLUtil.log, for extra visibility when Debug is disabled.
2011-07-12 14:21:29 +00:00
Ioannis Tsakpinis fa31e0f9cb Fixed bounds checking to work with .sliced mapped objects. 2011-07-12 13:44:13 +00:00
Ioannis Tsakpinis 585549f1f1 Mapped object code improvements: added license, additional documentation, reformatted code, now using LWJGLUtil.log instead of System.err.
Added system properties for bytecode transformer debug output. (org.lwjgl.util.mapped.PrintTiming & org.lwjgl.util.mapped.PrintActivity)
Added support for bounds checking the view of mapped objects. Enabled with org.lwjgl.util.mapped.Checks
Added tests for mapped objects. (org.lwjgl.test.mapped package)
Added "[LWJGL] " prefix to all LWJGL generated debug messages.
2011-07-12 13:29:04 +00:00
riven-lwjgl 7e244edc2b Initial release of mapped objects library (v0.10) in LWJGL. 2011-07-11 21:46:00 +00:00
Ioannis Tsakpinis 6c134c6330 Merged OpenGL ES branch. 2011-07-10 16:58:16 +00:00
kappa1 2cbae6efc8 minor update to comments and add missing JavaDoc 2011-07-10 00:31:16 +00:00
kappa1 6e15f0b781 AppletLoader: revert native file certificate validation to after extraction as it was failing if done before. 2011-06-26 02:18:53 +00:00
kappa1 e2fe8155f8 Add "Unix" as a linux platform to allow LWJGL to work on Slackware Linux, thx to kruno73 for pointing this out. 2011-06-23 11:26:42 +00:00
kappa1 96648a6fad AppletLoader: validate certificate for native files before attempting to extract them. 2011-06-15 21:15:58 +00:00
kappa1 1929c3be5d AppletLoader: fix problem with file extension trimming code, added warning when lzma support is missing 'lzma.jar' and lzma files are being loaded. 2011-06-12 23:51:44 +00:00
kappa1 5e318ef834 AppletLoader: fix some comments, code clean up and refactoring 2011-06-12 21:22:50 +00:00
Ioannis Tsakpinis 40cbf3e45f Added support for OpenGL ES. 2011-05-17 16:53:57 +00:00
kappa1 8f6dcd3a6d AppletLoader: small fix to also include "ppc64" on macs. 2011-05-13 19:16:34 +00:00
kappa1 4e872f8c2c AppletLoader: add support for optional mac arch specific natives, al_mac32, al_mac64, al_macppc, if they are not specified AppletLoader will fall back to the usual al_mac parameter. 2011-05-13 16:24:10 +00:00
kappa1 d8ef76f3fe AppletLoader: remove the last dependency on the sun.* package. 2011-05-07 16:29:13 +00:00
kappa1 ed6bdc0f7f AppletLoader: fix String replace bug on file names, full credits to Riven for spotting it and assisting with the fix. 2011-05-04 23:11:11 +00:00
kappa1 4015ae10a7 AppletLoader: remove unneeded debug code 2011-05-01 00:09:43 +00:00
kappa1 555ac07fd4 2011-05-01 00:03:26 +00:00
kappa1 d635a22014 AppletLoader: minor tweak on comments 2011-04-30 23:56:24 +00:00
kappa1 f11b5ac0b1 AppletLoader: added jar validation to detect corruption and ensures that the cache system doesn't mark corrupt files as successfully downloads. Thx to Riven and MatthiasM for assisting with the implementation. 2011-04-30 23:54:24 +00:00