Package org.lwjgl.system
Enum Platform
- All Implemented Interfaces:
Serializable
,Comparable<Platform>
,java.lang.constant.Constable
The platforms supported by LWJGL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The architectures supported by LWJGL.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform
get()
Returns the platform on which the library is running.static Platform.Architecture
Returns the architecture on which the library is running.getName()
Returns the platform name.static String
mapLibraryNameBundled
(String name) static Platform
Returns the enum constant of this type with the specified name.static Platform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
FREEBSD
-
LINUX
-
MACOSX
-
WINDOWS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Returns the platform name. -
get
Returns the platform on which the library is running. -
getArchitecture
Returns the architecture on which the library is running. -
mapLibraryNameBundled
-