Enum Class Java2DPipeline
- All Implemented Interfaces:
Serializable, Comparable<Java2DPipeline>, Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Java2DPipelineReturns the enum constant of this class with the specified name.static Java2DPipeline[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
Force the Direct3D rendering pipeline (sun.java2d.d3d=true). Only effective on Windows. Falls back to software on other platforms. -
SOFTWARE
Force software rendering by disabling the OpenGL and Direct3D pipelines. Use this if hardware acceleration causes rendering glitches.
-
-
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
-