Lightweight Java Game Library

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Lightweight Java Game Library (LWJGL)
Initial release 4 February 2007; 10 years ago (2007-02-04)[1]
Stable release
3.1.2 / 15 May 2017; 2 months ago (2017-05-15)[2]
Repository github.com/lwjgl
Development status Active
Written in Java, C, Kotlin[3][4]
Operating system Windows, Linux, OS X
Platform Java platform
Type Free computer library
License BSD,[5] some bindings under different licenses[3]
Website www.lwjgl.org

The Lightweight Java Game Library (LWJGL) is an open-source Java software library for video game developers. It exposes high performance cross-platform libraries commonly used in developing video games and multimedia titles, such as Vulkan, OpenGL, OpenAL and OpenCL. It further provides access to controllers such as gamepads, steering wheels and joysticks in a platform-neutral way.[6]

The primary goal of the project is to provide a way for Java developers to get access to resources that are otherwise unavailable or poorly implemented on the existing Java platform. The main philosophy is to expose underlying technology as a thin wrapper, thus creating an API close to the original. It is also the basis of many high-level Java game engines and libraries, such as libGDX or the jMonkeyEngine.

LWJGL is available under a BSD license.[5]

On 13 November 2014 version 3 was announced, which was released in alpha version on 27 April 2015 and is a complete rewrite of LWJGL.[7][8][9] Many new bindings, including GLFW, EGL and Objective-C, were added.[5][8] Support for Oculus Rift development was also added with LibOVR bindings.[5][9] The new version was released on 4 June 2016, after more than 3 and a half years in development.[10]

Bindings[edit]

The library accesses native C code through the Java Native Interface (JNI). Bindings to each of the native libraries exist as different modules so developers can make custom builds with only the things they need in a certain program.[5][9][11]

While utility classes are written in pure Java, most of the binding classes are automatically generated by a custom generator implemented in Kotlin.[3][4]

Since version 3.1 LWJGL is fully split into around 20 modules that can be downloaded and used separately. To make this process easier, the project provides an online build configurator, which allows users to download custom combinations of modules and automatically generates Maven and Gradle configuration files to ease their use with existing projects.[12][3][13]

Provided bindings[3][5]
Binding Description Notes
EGL Interface between Khronos rendering APIs and the underlying native platform window system.
OpenCL API for cross-platform parallel computing.
OpenGL 3D graphics specification implemented by most GPU vendors. Most extensions supported, but less popular ones will be added on request.
OpenGL ES OpenGL for embedded systems like mobile phones, tablets or consoles.
Vulkan Upcoming cross-platform 3D graphics API.
GLFW Window management library needed for handling OpenGL and Vulkan contexts as well as user input.
JAWT AWT native interface.
nfd Small cross-platform native file dialogs library.
tinyfd Small native dialog library.
OpenAL Three-dimensional audio API. ALC and other extensions are supported.
OpenAL Soft Freely licensed software implementation of OpenAL.
bgfx Cross-platform rendering library supporting multiple graphics backends.
LibOVR API of the Oculus Rift SDK.
NanoVG 2D vector graphics rendering library using OpenGL.
Nuklear (library) Simple GUI library.
par shapes Generator for parametric and other simple shapes.
STB Lightweight single-file library for loading images, sounds and fonts.
dyncall Library for dynamically calling C functions in a portable way.
jemalloc Low-level memory management.
LMDB Fast database library using memory-mapped files.
xxHash Fast hash algorithm.

Notable uses[edit]

References[edit]

  1. ^ "LWJGL 1.0 Released". forum.lwjgl.org. 4 February 2007. Retrieved 23 July 2016. 
  2. ^ "LWJGL 3.1.2 Released!". blog.lwjgl.org. 15 May 2017. Retrieved 16 May 2017. 
  3. ^ a b c d e "LWJGL/lwjgl3". github.com. Retrieved 13 August 2016. 
  4. ^ a b "lwjgl3/doc – Generator". github.com. 11 August 2015. Retrieved 30 August 2015. 
  5. ^ a b c d e f "Official website". Retrieved 14 August 2015. 
  6. ^ "LWJGL Wiki". github.com. Retrieved 2 June 2015. 
  7. ^ Tsakpinis, Ioannis (13 November 2014). "Welcome to LWJGL 3". blog.lwjgl.org. 
  8. ^ a b "LWJGL 3 Roadmap". github.com. Retrieved 2 June 2015. 
  9. ^ a b c Tsakpinis, Ioannis (27 April 2015). "LWJGL 3.0.0a released". blog.lwjgl.org. 
  10. ^ "LWJGL 3.0.0 Released!". blog.lwjgl.org. 4 June 2016. Retrieved 4 June 2016. 
  11. ^ "Bindings FAQ". github.com. 27 December 2014. Retrieved 27 July 2015. 
  12. ^ "LWJGL 3.1.0 Released!". blog.lwjgl.org. 30 October 2016. Retrieved 11 November 2016. 
  13. ^ "Download – LWJGL". lwjgl.org. Retrieved 11 November 2016. 
  14. ^ "minecraft.net – Credits". Retrieved 6 August 2016. 

External links[edit]