Enum Class JmeContext.Type

java.lang.Object
java.lang.Enum<JmeContext.Type>
com.jme3.system.JmeContext.Type
All Implemented Interfaces:
Serializable, Comparable<JmeContext.Type>, Constable
Enclosing interface:
JmeContext

public static enum JmeContext.Type extends Enum<JmeContext.Type>
The type of context.
  • Enum Constant Details

    • Display

      public static final JmeContext.Type 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

      public static final JmeContext.Type 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

      public static final JmeContext.Type OffscreenSurface
      An 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.
    • Headless

      public static final JmeContext.Type Headless
      A Headless 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

      public static JmeContext.Type[] 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

      public static JmeContext.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null