LWJGL 3.0.0b has been released!
Visit the download (https://www.lwjgl.org/download) page to get it. You can also get it from Maven Central or this direct link (http://build.lwjgl.org/release/3.0.0b/lwjgl-3.0.0b.zip).
Release notes:
- The API is now considered stable. There were several API changes, especially to struct and callback classes.
- Moved advanced functionality from the base package to the system package. Public API in the system package may change between releases.
- Critical methods have been optimized for better performance and garbage elimination.
- JNI methods are now deduplicated and struct layout is calculated in Java. This means much smaller shared libraries.
- Introduced the Configuration class that can be used to programmatically configure LWJGL.
- Introduced explicit memory management API, which is also used internally by LWJGL.
- Introduced a debug allocator that can be enabled for the explicit memory management API. It reports memory leaks with full stack-traces to the leaked allocations.
- All struct classes now have a corresponding StructBuffer implementation. Bindings now use Struct and StructBuffer parameters and return values, instead of ByteBuffer, which improves type safety.
- Struct fields and accessors are now documented.
- Many other fixes and minor features.
Changes to bindings:
- Removed obsolete OS-specific bindings.
- Added bindings to many OpenGL extensions that were missing in 3.0.0a.
- Added bindings to jemalloc.
- Added bindings to EGL.
- Added bindings to OpenGL ES.
- Added bindings to xxHash.
- The bindings to LibOVR were updated to 0.8.0.0 and are now included in the official build.
- Several other fixes and updates to existing bindings.
Hi, I am trying to use EGL stuff but found EGL related libs were not shipped with the release package. Where can I find a built one, especially for Mac?
Thanks.
EGL is not supported on OS X. You may be able to find a library that emulates it on top of desktop GL (http://malideveloper.arm.com/resources/tools/opengl-es-emulator/) or Metal (https://metalgl.com/).
Hi there, i couldn't find more info about the latest api changes other than what's in this document (https://github.com/LWJGL/lwjgl3/blob/master/doc/notes/3.0.0b.md).
I updated the library and now have this two problems:
GLContext.createFromCurrent();
It looks like GLContext is not there anymore?
glfwSetErrorCallback(errorCallback = errorCallbackThrow());
errorCallbackThrow looks removed too.
Any quick replacement for the two lines? Or if it's more complex than it looks, should i stay with current 3.0.0.a version ?
Thanks
Hey msx,
Quote from: msx on March 17, 2016, 10:22:26GLContext.createFromCurrent();
It looks like GLContext is not there anymore?
Yes, GLContext has been removed. You should now use GL.createCapabilities();
Quote from: msx on March 17, 2016, 10:22:26glfwSetErrorCallback(errorCallback = errorCallbackThrow());
errorCallbackThrow looks removed too.
These have been moved to the GLFWErrorCallback class as factory methods. Try GLFWErrorCallback.createThrow();