Package com.jme3.system
Enum Class JmeContext.Type
- All Implemented Interfaces:
Serializable
,Comparable<JmeContext.Type>
,Constable
- Enclosing interface:
- JmeContext
The type of context.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA canvas type context makes a rendering surface available as an AWT Canvas object that can be embedded in a Swing/AWT frame.A display can represent a windowed or a fullscreen-exclusive display.AHeadless
context is not visible and does not have any drawable surface.AnOffscreenSurface
is a context that is not visible by the user. -
Method Summary
Modifier and TypeMethodDescriptionstatic JmeContext.Type
Returns the enum constant of this class with the specified name.static JmeContext.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Display
A display can represent a windowed or a fullscreen-exclusive display. If windowed, the graphics are rendered to a new on-screen surface enclosed in a window defined by the operating system. Implementations are encouraged to not use AWT or Swing to create the OpenGL display but rather use native operating system functions to set up a native display with the windowing system. -
Canvas
A canvas type context makes a rendering surface available as an AWT Canvas object that can be embedded in a Swing/AWT frame. To retrieve the Canvas object, you should cast the context to JmeCanvasContext. -
OffscreenSurface
AnOffscreenSurface
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. -
Headless
AHeadless
context is not visible and does not have any drawable surface. The implementation does not provide any display, input, or sound support.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-