public enum GraphicsInterface extends java.lang.Enum<GraphicsInterface>
Enum Constant and Description |
---|
GL2
OpenGL, version 2.1
|
GL3
OpenGL, version 3.3
|
Modifier and Type | Method and Description |
---|---|
static GraphicsInterface |
checkAvailability(GraphicsInterface gi)
Check if a specific graphics interface is supported on the hardware and
if not try to substitute on that is.
|
static GraphicsInterface |
fromString(java.lang.String str)
Like valueOf(), except if the string is not valid then the method simply
returns
null instead of throwing an exception. |
int |
getMajorVersion() |
int |
getMinorVersion() |
static GraphicsInterface |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GraphicsInterface[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphicsInterface GL2
public static final GraphicsInterface GL3
public static GraphicsInterface[] values()
for (GraphicsInterface c : GraphicsInterface.values()) System.out.println(c);
public static GraphicsInterface valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMajorVersion()
public int getMinorVersion()
public static GraphicsInterface fromString(java.lang.String str)
null
instead of throwing an exception.public static GraphicsInterface checkAvailability(GraphicsInterface gi)