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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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.AHeadlesscontext is not visible and does not have any drawable surface.AnOffscreenSurfaceis a context that is not visible by the user.
- 
Method SummaryModifier and TypeMethodDescriptionstatic JmeContext.TypeReturns 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- 
DisplayA 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.
- 
CanvasA 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.
- 
OffscreenSurfaceAnOffscreenSurfaceis 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.
- 
HeadlessAHeadlesscontext is not visible and does not have any drawable surface. The implementation does not provide any display, input, or sound support.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-