The javax.media.opengl package
This package contains Java bindings for all core OpenGL methods through
version 2.0, inclusive, as well as most OpenGL extensions defined at the
time of this specification. Early OpenGL extensions whose functionality
was incorporated into core OpenGL by version 1.3, inclusive, are specifically
excluded.
ByteBuffer.allocateDirect(...).order(ByteOrder.nativeOrder());
.
The byte order of the ByteBuffer indicates how multi-byte values such as
int and float are stored in the Buffer either using methods like putInt and
putFloat or views such as IntBuffer or FloatBuffer. The Java bindings perform
no conversion or byte swapping on the outgoing data to OpenGL, and the native
OpenGL implementation expects data in the host CPU's byte order, so it is
essential to always match the byte order of the underlying platform when
filling Buffers with data. http://www.jcp.org/en/jsr/detail?id=231
http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
http://oss.sgi.com/projects/ogl-sample/registry/index.html
http://www.opengl.org/documentation/specs/glu/glu1_3.pdf
http://www.opengl.org/about/arb/index.html