This article has multiple issues. Please help improve it or discuss these issues on the talk page . (Learn how and when to remove these messages)
|
Original author(s) | Caspian Prince |
---|---|
Developer(s) | Ioannis Tsakpinis |
Initial release | 4 February 2007 [1] |
Stable release | 3.3.4 / 17 July 2024 |
Repository | github |
Written in | Java, C, Kotlin [2] [3] |
Operating system | Linux, macOS, Windows, FreeBSD |
Platform | Java platform |
Type | Free computer library |
License | BSD, [4] some bindings under different licenses [2] |
Website | lwjgl |
The Lightweight Java Game Library (LWJGL) is an open-source software library that provides bindings to a variety of C libraries for video game developers to Java. It exposes cross-platform libraries commonly used in developing video games and multimedia titles, such as Vulkan, OpenGL, OpenAL and OpenCL.
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.
Development of the library began in 2002 with the release of J2SE 1.4, making use of the newly-added non-blocking I/O operations and off-heap memory access. These additions to the JDK allowed for better access to native memory and libraries not a part of the JDK. The first official release of the library was on 4 February 2007. [1]
On 13 November 2014, version 3 was announced, which was released in the alpha version on 27 April 2015 and is a complete rewrite of LWJGL. [5] [6] [7] Many new bindings, including GLFW, EGL and Objective-C, were added. [4] [6] Support for Oculus Rift development was also added with LibOVR bindings. [4] [7] The new version was released on 4 June 2016, after more than 3 and a half years in development. [8]
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. [4] [7] [9]
While utility classes are written in pure Java, most of the binding classes are automatically generated by a custom generator implemented in Kotlin. [2] [3]
Since version 3.1, LWJGL is fully split into 51 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. [10] [11] [12]
Binding | Category | Description | Notes |
---|---|---|---|
EGL | Khronos APIs | 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 are 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 | Display and Input | 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 | Audio | Three-dimensional audio API. | ALC and other extensions are supported. Specifically bundles the OpenAL Soft implementation. |
Opus | Open, royalty-free audio codec. | ||
Assimp | Graphics | Portable open source library to import various 3D model formats. | |
bgfx | Cross-platform rendering library supporting multiple graphics backends. | ||
DriftFX | Library to render OpenGL content into JavaFX nodes. | ||
LibOVR | API of the Oculus Rift SDK. | ||
meshoptimizer | A mesh optimization library that makes meshes smaller and faster to render | ||
NanoSVG | Simple SVG parser. | ||
NanoVG | 2D vector graphics rendering library using OpenGL. | ||
Nuklear | Simple GUI library. | ||
par_shapes | Generator for parametric and other simple shapes. | ||
par_streamlines | Triangulate wide lines and curves. | ||
OpenVR | An API runtime that allows access to VR hardware from multiple vendors without requiring applications have specific knowledge of the type of hardware they are targeting. | ||
Shaderc | A collection of libraries for shader compilation | ||
SPIRV-Cross | A library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages. | ||
OpenEXR | A small, single-header library to load and save OpenEXR (.exr) images. | ||
Tootle (AMD) | A 3D triangle mesh optimization library that improves on existing mesh preprocessing techniques. | ||
Vulkan Memory Allocator | An easy to integrate Vulkan memory allocation library. | ||
Yoga | An open-source, cross-platform layout library that implements CSS Flexbox. | ||
STB | STB | Lightweight single-file libraries for loading images, sounds and fonts. | |
Bullet Physics | Other | Real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine-learning, etc. | |
CUDA | A parallel computing platform and programming model developed by NVIDIA for general computing on GPUs. | ||
dyncall | Library for dynamically calling C functions in a portable way. | Set to be removed. | |
jemalloc | Low-level memory management. | ||
libffi | A portable, high level programming interface to various calling conventions. | Replaces dyncall. | |
libdivide | A library that replaces expensive integer divides with comparatively cheap multiplication and bitshifts. | ||
LLVM | A collection of modular and reusable compiler and toolchain technologies. | ||
LMDB | Fast database library using memory-mapped files. | ||
LZ4 | A lossless data compression algorithm that is focused on speed. | ||
Meow Hash | Fast non-cryptographic hash. | ||
ODBC | A C-language interface that makes it possible for applications to access data from a variety of database management systems. | ||
Remotery | Realtime CPU/GPU profiler. | ||
rpmalloc | Cross-platform thread caching memory allocator. | ||
xxHash | Fast hash algorithm. | ||
Zstandard | A fast lossless compression algorithm. |
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides dynamic capabilities that are typically not available in traditional compiled languages.
Irrlicht is an open-source game engine written in C++. It is cross-platform, officially running on Windows, macOS, Linux and Windows CE and due to its open nature ports to other systems are available, including FreeBSD, Xbox, PlayStation Portable, Symbian, iPhone, AmigaOS 4, Sailfish OS via a Qt/QML wrapper, and Google Native Client.
Java is a set of computer software and specifications that provides a software platform for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers. Java applets, which are less common than standalone Java applications, were commonly run in secure, sandboxed environments to provide many features of native applications through being embedded in HTML pages.
The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform. The language is specified by the Java Language Specification (JLS); changes to the JLS are managed under JSR 901. In September 2017, Mark Reinhold, chief Architect of the Java Platform, proposed to change the release train to "one feature release every six months" rather than the then-current two-year schedule. This proposal took effect for all following versions, and is still the current release schedule.
QtScript is a scripting engine that has been part of the Qt cross-platform application framework since version 4.3.0. It was first deprecated and then dropped as of Qt 6.5.
JavaFX is a software platform for creating and delivering desktop applications, as well as rich web applications that can run across a wide variety of devices. JavaFX has support for desktop computers and web browsers on Microsoft Windows, Linux, and macOS, as well as mobile devices running iOS and Android, through Gluon Mobile.
The Java Platform Module System specifies a distribution format for collections of Java code and associated resources. It also specifies a repository for storing these collections, or modules, and identifies how they can be discovered, loaded and checked for integrity. It includes features such as namespaces with the aim of fixing some of the shortcomings in the existing JAR format, especially the JAR Hell, which can lead to issues such as classpath and class loading problems.
The Java Development Kit (JDK) is a distribution of Java technology by Oracle Corporation. It implements the Java Language Specification (JLS) and the Java Virtual Machine Specification (JVMS) and provides the Standard Edition (SE) of the Java Application Programming Interface (API). It is derivative of the community driven OpenJDK which Oracle stewards. It provides software for working with Java applications. Examples of included software are the Java virtual machine, a compiler, performance monitoring tools, a debugger, and other utilities that Oracle considers useful for Java programmers.
sbt is an open-source build tool which can build Java, Scala, and Kotlin projects. It aims to streamline the procedure of constructing, compiling, testing, and packaging applications, libraries, and frameworks. sbt is highly adaptable, permitting developers to customize the build process according to their project's specific needs.
The Transport Layer Security (TLS) protocol provides the ability to secure communications across or inside networks. This comparison of TLS implementations compares several of the most notable libraries. There are several TLS implementations which are free software and open source.
Project Zomboid is an open-world, isometric video game developed by British and Canadian independent developer The Indie Stone. The game is set in the post-apocalyptic, zombie-infested exclusion zone of the fictional Knox Country, Kentucky, United States, where the player is challenged to survive for as long as possible before inevitably dying. It was one of the first five games released on the alpha funding section of the gaming portal Desura.
Xtext is an open-source software framework for developing programming languages and domain-specific languages (DSLs). Unlike standard parser generators, Xtext generates not only a parser, but also a class model for the abstract syntax tree, as well as providing a fully featured, customizable Eclipse-based IDE.
Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains HTML, CSS and (optionally) JavaScript-based design templates for typography, forms, buttons, navigation, and other interface components.
GraalVM is a Java Development Kit (JDK) written in Java. The open-source distribution of GraalVM is based on OpenJDK, and the enterprise distribution is based on Oracle JDK. As well as just-in-time (JIT) compilation, GraalVM can compile a Java application ahead of time. This allows for faster initialization, greater runtime performance, and decreased resource consumption, but the resulting executable can only run on the platform it was compiled for.
libGDX is a free and open-source game-development application framework written in the Java programming language with some C and C++ components for performance dependent code. It allows for the development of desktop and mobile games by using the same code base. It is cross-platform, supporting Windows, Linux, macOS, Android, iOS, BlackBerry and web browsers with WebGL support.
The tables below compare cryptography libraries that deal with cryptography algorithms and have application programming interface (API) function calls to each of the supported features.
Polymer is an open-source JavaScript library for building web applications using Web Components. The library is being developed by Google developers and contributors on GitHub. Modern design principles are implemented as a separate project using Google's Material Design design principles.
Angular is a TypeScript-based free and open-source single-page web application framework. It is developed by Google and by a community of individuals and corporations. Angular is a complete rewrite from the same team that built AngularJS. The Angular ecosystem consists of a diverse group of over 1.7 million developers, library authors, and content creators. According to the Stack Overflow Developer Survey, Angular is one of the most commonly used web frameworks.
Deno is a runtime for JavaScript, TypeScript, and WebAssembly that is based on the V8 JavaScript engine and the Rust programming language. Deno was co-created by Ryan Dahl, who also created Node.js.