Java Bindings for OpenGL


Java Binding for the OpenGL API is a JSR API specification for the Java Platform, Standard Edition which allows to use OpenGL on the Java. There is also Java Binding for the OpenGL ES API for the Java Platform, Micro Edition.

Programming concepts

Core OpenGL API and GLU library calls are available from Java through a thin wrapper looking very much as the original OpenGL C API, Except GLU NURBS routines which are not exposed through the public API.
All platform specific libraries are also abstracted out to create a platform independent way of selecting Framebuffer attributes and performing platform specific Framebuffer operations.
Platform-specific extensions are not included in the public API. Each implementation can choose to export some of these APIs via the and method calls which return Objects whose data types are specific to the given implementation.

Example

This example shows how to draw a polygon. Here is the reference C implementation:

int DrawGLScene

Which translates to the following Java implementation:

public void display

Implementations