org.xith3d.render.config
Class OpenGLLayer

java.lang.Object
  extended by org.xith3d.render.config.OpenGLLayer
All Implemented Interfaces:
java.lang.Comparable<OpenGLLayer>

public class OpenGLLayer
extends java.lang.Object
implements java.lang.Comparable<OpenGLLayer>

The OpenGLLayer is an abstract selection mechanism for the underlying rendering engine.
It is not designed as an enum to be extensible for other engines not directly integrated into Xith3D's core.


Field Summary
static OpenGLLayer JOGL_AWT
           
static OpenGLLayer JOGL_SWING
           
static OpenGLLayer JOGL_SWT
           
static OpenGLLayer LWJGL
           
static OpenGLLayer LWJGL_AWT
           
protected static int next_ordinal
           
 
Constructor Summary
OpenGLLayer(java.lang.String name, boolean isStandaloneCapable, java.lang.String displayModeSelectorClassName, java.lang.String canvasPeerImplClassName)
           
 
Method Summary
 int compareTo(OpenGLLayer o)
          
 boolean equals(java.lang.Object o)
          
 java.lang.String getCanvasPeerImplClassName()
           
static OpenGLLayer getDefault()
           
 java.lang.String getDisplayModeSelectorClassName()
           
 int hashCode()
          
 boolean isAWT()
           
 boolean isAWTorSwing()
           
 boolean isJOGL()
           
 boolean isLWJGL()
           
 boolean isStandaloneCapable()
           
 java.lang.String name()
           
 int ordinal()
           
 java.lang.String toString()
          
static OpenGLLayer valueOf(java.lang.String name)
           
static OpenGLLayer[] values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

next_ordinal

protected static int next_ordinal

JOGL_AWT

public static final OpenGLLayer JOGL_AWT

JOGL_SWING

public static final OpenGLLayer JOGL_SWING

JOGL_SWT

public static final OpenGLLayer JOGL_SWT

LWJGL

public static final OpenGLLayer LWJGL

LWJGL_AWT

public static final OpenGLLayer LWJGL_AWT
Constructor Detail

OpenGLLayer

public OpenGLLayer(java.lang.String name,
                   boolean isStandaloneCapable,
                   java.lang.String displayModeSelectorClassName,
                   java.lang.String canvasPeerImplClassName)
Method Detail

name

public final java.lang.String name()
Returns:
the OpenGLLayer's name.

ordinal

public final int ordinal()
Returns:
an ordinal index unique in the list of OpenGLLayers.

isStandaloneCapable

public final boolean isStandaloneCapable()
Returns:
whether this OpenGLLayer is capable of creating a standalone window (no owner).

getDisplayModeSelectorClassName

public final java.lang.String getDisplayModeSelectorClassName()
Returns:
the name of the Class-object for the corresponding DisplayModeSelector.

getCanvasPeerImplClassName

public final java.lang.String getCanvasPeerImplClassName()
Returns:
the name of the Class-object for the corresponding CanvasPeerImpl.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(OpenGLLayer o)

Specified by:
compareTo in interface java.lang.Comparable<OpenGLLayer>

values

public static OpenGLLayer[] values()
Returns:
an array of all fields of this syntetic enum.

valueOf

public static OpenGLLayer valueOf(java.lang.String name)
Parameters:
name -
Returns:
the OpenGLLayer corresponding to the given name.

getDefault

public static OpenGLLayer getDefault()
Returns:
the default render engine to use This can be specified via the system property "org.xith3d.defaultRenderer". If not specified this is LWJGL.

isJOGL

public boolean isJOGL()
Returns:
true, if this OpenGLLayer is one of the JOGL ones

isLWJGL

public boolean isLWJGL()
Returns:
true, if this OpenGLLayer is the LWJGL one

isAWT

public boolean isAWT()
Returns:
true, if this OpenGLLayer AWT based

isAWTorSwing

public boolean isAWTorSwing()
Returns:
true, if this OpenGLLayer AWT or Swing based