Top Description Inners Fields Constructors Methods
org.lwjgl.system

public sealed Enum Platform

extends Enum<Platform>
Class Inheritance
Imports
javax.annotation.*, java.util.function.*, java.util.regex.*

The platforms supported by LWJGL.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Platform.Architecture

The architectures supported by LWJGL.

Field Summary

Modifier and TypeField and Description
private static final Function<String, String>
private static final Function<String, String>
private static final Platform
public static final Platform
public static final Platform
private final String
private final String
public static final Platform

Constructor Summary

AccessConstructor and Description
private
Platform(String name, String nativePath)

Method Summary

Modifier and TypeMethod and Description
public static Platform
get()

Returns the platform on which the library is running.

public static Platform.Architecture
getArchitecture()

Returns the architecture on which the library is running.

private static Function<String, String>
getMapper(Object mapper, Function<String, String> defaultMapper, Function<String, String> legacyMapper)

public String
getName()

Returns the platform name.

pack-priv abstract String
public static String
pack-priv static String
public static Platform
public static Platform[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

bundledLibraryNameMapperback to summary
private static final Function<String, String> bundledLibraryNameMapper
bundledLibraryPathMapperback to summary
private static final Function<String, String> bundledLibraryPathMapper
currentback to summary
private static final Platform current
LINUXback to summary
public static final Platform LINUX
MACOSXback to summary
public static final Platform MACOSX
nameback to summary
private final String name

Hides java.lang.Enum.name.

nativePathback to summary
private final String nativePath
WINDOWSback to summary
public static final Platform WINDOWS

Constructor Detail

Platformback to summary
private Platform(String name, String nativePath)

Method Detail

getback to summary
public static Platform get()

Returns the platform on which the library is running.

getArchitectureback to summary
public static Platform.Architecture getArchitecture()

Returns the architecture on which the library is running.

getMapperback to summary
private static Function<String, String> getMapper(Object mapper, Function<String, String> defaultMapper, Function<String, String> legacyMapper)
Annotations
@SuppressWarnings:unchecked
getNameback to summary
public String getName()

Returns the platform name.

mapLibraryNameback to summary
pack-priv abstract String mapLibraryName(String name)
mapLibraryNameBundledback to summary
public static String mapLibraryNameBundled(String name)
mapLibraryPathBundledback to summary
pack-priv static String mapLibraryPathBundled(String name)
valueOfback to summary
public static Platform valueOf(String name)
valuesback to summary
public static Platform[] values()
org.lwjgl.system back to summary

public final Enum Platform.Architecture

extends Enum<Platform.Architecture>
Class Inheritance

The architectures supported by LWJGL.

Field Summary

Modifier and TypeField and Description
public static final Platform.Architecture
public static final Platform.Architecture
pack-priv static final Platform.Architecture
pack-priv final boolean
public static final Platform.Architecture
public static final Platform.Architecture

Constructor Summary

AccessConstructor and Description
private
Architecture(boolean is64Bit)

Method Summary

Modifier and TypeMethod and Description
public static Platform.Architecture
public static Platform.Architecture[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ARM32back to summary
public static final Platform.Architecture ARM32
ARM64back to summary
public static final Platform.Architecture ARM64
currentback to summary
pack-priv static final Platform.Architecture current
is64Bitback to summary
pack-priv final boolean is64Bit
X64back to summary
public static final Platform.Architecture X64
X86back to summary
public static final Platform.Architecture X86

Constructor Detail

Architectureback to summary
private Architecture(boolean is64Bit)

Method Detail

valueOfback to summary
public static Platform.Architecture valueOf(String name)
valuesback to summary
public static Platform.Architecture[] values()