JAVA OpenGL (JOGL)

ninetimesdissemblingSoftware and s/w Development

Nov 10, 2012 (4 years and 9 months ago)

271 views

JAVA OpenGL

(JOGL)

Presentation by Eddie Welch & Kit Collins

JAVA OpenGL


JOGL
-

a wrapper library that allows OpenGL
to be used in the Java programming language.



Originally developed by Kenneth Bradley
Russell and Christopher John Kline.



Currently being developed by the Game
Technology Group at Sun Microsystems.

What is OpenGL?


OpenGL


Open

G
raphics
L
ibrary.



OpenGL is a standard specification defining a
cross
-
language, cross
-
platform API for writing
applications that produce 2D and 3D computer
graphics.



Interface consists of over 250 different function
calls which can be used to draw complex
-
three
dimensional scenes from simple primitives.






JAVA OpenGL


The base
OpenGL C API
is accessed in
JOGL via
Java Native Interface

(JNI) calls.



JNI is a programming framework that
allows Java code running in a JVM to call
and to be called by native applications
(programs specific to a hardware and
operating system platform) and libraries
written in other languages, such as C,
C++ and assembly.


JAVA OpenGL


JOGL differs from some other Java OpenGL
wrapper libraries in that it merely exposes the
procedural OpenGL API via methods on a few
classes, rather than attempting to map OpenGL
functionality onto the

object
-
oriented
programming paradigm. Indeed, the majority of
the JOGL code is auto
-
generated from the
OpenGL C header files via a conversion tool
named

Gluegen
, which was programmed
specifically to facilitate the creation of JOGL.

Setting up JOGL in Netbeans


http://projectkenai.com/projects/netbeans
-
opengl
-
pack/pages/Home


Using JOGL in Eclipse



http://timelessname.com/jogl/lesson01/