Package com.jme3.opencl.lwjgl
Class LwjglPlatform
java.lang.Object
com.jme3.opencl.lwjgl.LwjglPlatform
- All Implemented Interfaces:
Platform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends String>getName()org.lwjgl.opencl.CLPlatformintExtracts the major version from the version stringintExtracts the minor version from the version stringbooleanhasExtension(String extension) Queries if the specified extension is available.booleanQueries if this platform supports OpenGL interop at all.booleanbooleantoString()
-
Constructor Details
-
LwjglPlatform
public LwjglPlatform(org.lwjgl.opencl.CLPlatform platform)
-
-
Method Details
-
getPlatform
public org.lwjgl.opencl.CLPlatform getPlatform() -
getDevices
- Specified by:
getDevicesin interfacePlatform- Returns:
- the list of available devices for this platform
-
getProfile
- Specified by:
getProfilein interfacePlatform- Returns:
- The profile string
-
isFullProfile
public boolean isFullProfile()- Specified by:
isFullProfilein interfacePlatform- Returns:
trueif this platform implements the full profile
-
isEmbeddedProfile
public boolean isEmbeddedProfile()- Specified by:
isEmbeddedProfilein interfacePlatform- Returns:
trueif this platform implements the embedded profile
-
getVersion
- Specified by:
getVersionin interfacePlatform- Returns:
- the version string
-
getVersionMajor
public int getVersionMajor()Description copied from interface:PlatformExtracts the major version from the version string- Specified by:
getVersionMajorin interfacePlatform- Returns:
- the major version
-
getVersionMinor
public int getVersionMinor()Description copied from interface:PlatformExtracts the minor version from the version string- Specified by:
getVersionMinorin interfacePlatform- Returns:
- the minor version
-
getName
-
getVendor
-
hasExtension
Description copied from interface:PlatformQueries if the specified extension is available. This value has to be tested also for every device.- Specified by:
hasExtensionin interfacePlatform- Parameters:
extension- the extension string- Returns:
trueif this extension is supported by the platform (however, not all devices might support it as well)
-
hasOpenGLInterop
public boolean hasOpenGLInterop()Description copied from interface:PlatformQueries if this platform supports OpenGL interop at all. This value has also to be tested for every device.- Specified by:
hasOpenGLInteropin interfacePlatform- Returns:
trueif OpenGL interop is supported
-
getExtensions
- Specified by:
getExtensionsin interfacePlatform- Returns:
- All available extensions
-
toString
-