|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JmeContext.Type>
com.jme3.system.JmeContext.Type
public static enum JmeContext.Type
The type of context.
Enum Constant Summary | |
---|---|
Canvas
A canvas type context makes a rendering surface available as an AWT Canvas object that can be embedded in a Swing/AWT
frame. |
|
Display
A display can represent a windowed or a fullscreen-exclusive display. |
|
Headless
A Headless context is not visible and does not have
any drawable surface. |
|
OffscreenSurface
An OffscreenSurface is a context that is not visible
by the user. |
Method Summary | |
---|---|
static JmeContext.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JmeContext.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JmeContext.Type Display
public static final JmeContext.Type Canvas
Canvas
object that can be embedded in a Swing/AWT
frame. To retrieve the Canvas object, you should cast the context
to JmeCanvasContext
.
public static final JmeContext.Type OffscreenSurface
OffscreenSurface
is a context that is not visible
by the user. The application can use the offscreen surface to do
General Purpose GPU computations or render a scene into a buffer
in order to save it as a screenshot, video or send through a network.
public static final JmeContext.Type Headless
Headless
context is not visible and does not have
any drawable surface. The implementation does not provide any
display, input, or sound support.
Method Detail |
---|
public static JmeContext.Type[] values()
for (JmeContext.Type c : JmeContext.Type.values()) System.out.println(c);
public static JmeContext.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |