com.metsci.glimpse.gl
Class Jogular

java.lang.Object
  extended by com.metsci.glimpse.gl.Jogular

public class Jogular
extends java.lang.Object

A utility that allows JOGL to load its native libraries from classpath resources. This way, the native libs can be kept in a jar, and managed like normal dependencies (with Maven, e.g.). Also, java.library.path does not need to be specified on the java command line. To use, call Jogular.initJogl() before any Glimpse or OpenGL classes are loaded. It is safest to do this on the first line of main(). For an RCP application, the safest place is in a static block in the activator class. Use of this class may cause the creation of temporary files and/or directories.

Author:
hogye

Nested Class Summary
static class Jogular.JogularLoaderAction
           
 
Field Summary
static java.lang.String jogularPlatformProperty
           
 
Constructor Summary
Jogular()
           
 
Method Summary
static void initJogl()
           
static java.lang.String joglPlatformString()
           
static java.lang.String nativeLibResourceSearchPath()
           
static boolean needGluegen()
          The gluegen native lib is only used by JOGL's X11 implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jogularPlatformProperty

public static final java.lang.String jogularPlatformProperty
See Also:
Constant Field Values
Constructor Detail

Jogular

public Jogular()
Method Detail

joglPlatformString

public static java.lang.String joglPlatformString()

nativeLibResourceSearchPath

public static java.lang.String nativeLibResourceSearchPath()

needGluegen

public static boolean needGluegen()
The gluegen native lib is only used by JOGL's X11 implementation.


initJogl

public static void initJogl()


Copyright © 2012 Metron, Inc.. All Rights Reserved.