public static enum JmeContext.Type extends java.lang.Enum<JmeContext.Type>
| Enum Constant and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final JmeContext.Type Display
public static final JmeContext.Type Canvas
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.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 namejava.lang.NullPointerException - if the argument is null