Enum Class Java2DPipeline

java.lang.Object
java.lang.Enum<Java2DPipeline>
de.gurkenlabs.litiengine.configuration.Java2DPipeline
All Implemented Interfaces:
Serializable, Comparable<Java2DPipeline>, Constable

public enum Java2DPipeline extends Enum<Java2DPipeline>
Represents the Java2D rendering pipeline to use. The pipeline is applied automatically during Game.init() via RenderComponent.configurePipeline(), which must run before any Graphics2D context is created.
See Also:
  • Enum Constant Details

    • DEFAULT

      public static final Java2DPipeline DEFAULT
      Use the platform-default Java2D pipeline. On most systems this is a software rasterizer, but on some platforms it may select a hardware accelerated pipeline automatically.
    • OPENGL

      public static final Java2DPipeline OPENGL
      Force the OpenGL rendering pipeline (sun.java2d.opengl=true). This typically gives a large performance boost on desktop systems with capable GPU drivers. Falls back to software if OpenGL is unavailable.
    • DIRECT3D

      public static final Java2DPipeline DIRECT3D
      Force the Direct3D rendering pipeline (sun.java2d.d3d=true). Only effective on Windows. Falls back to software on other platforms.
    • SOFTWARE

      public static final Java2DPipeline SOFTWARE
      Force software rendering by disabling the OpenGL and Direct3D pipelines. Use this if hardware acceleration causes rendering glitches.
  • Method Details

    • values

      public static Java2DPipeline[] 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 Java2DPipeline 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