Login  Register

Re: Required JOGL Jars to run Java 3D 1.6

Posted by InteractiveMesh on Nov 27, 2012; 10:58am
URL: https://forum.jogamp.org/Required-JOGL-Jars-to-run-Java-3D-1-6-tp4027211p4027241.html

From the current 2.0-rc11 'jogl-all.jar' following packages and classes seem removable. I tested it on my own JOGL 2 pipeline which doesn't depend on GLU. This results in a jar-file of 1,141 KB size.

- com.jogamp.graph
- com.jogamp.newt
- com.jogamp.opengl.swt
- com.jogamp.opengl.util, all without GLBuffers.class
- javax.media.opengl.Debug<profile>.class
- javax.media.opengl.Trace<profile>.class
(- javax.media.opengl.glu)
- jogamp.graph
- jogamp.newt
(- jogamp.opengl.glu)
- jogl.util.data.av

I suggest to avoid the dependence on GLU in JoglPipeline.getPropertiesFromCurrentContext(JoglContext ctx) : GL gl = GLU.getCurrentGL();

Alternatively, the current GL instance could be retrieved from 'ctx' (ctx.getGLContext().getGL().getGL2()) or (better ?) could be provided as a second argument.

August