Package com.jme3.opencl
Interface Platform
- All Known Implementing Classes:
LwjglPlatform
public interface Platform
A wrapper for an OpenCL platform. A platform is the highest object in the
object hierarchy, it creates the
This class is mostly used within
Devices which are then used to
create the Context.This class is mostly used within
PlatformChooser.-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends String>getName()intExtracts 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.booleanboolean
-
Method Details
-
getDevices
- Returns:
- the list of available devices for this platform
-
getProfile
String getProfile()- Returns:
- The profile string
-
isFullProfile
boolean isFullProfile()- Returns:
trueif this platform implements the full profile
-
isEmbeddedProfile
boolean isEmbeddedProfile()- Returns:
trueif this platform implements the embedded profile
-
getVersion
String getVersion()- Returns:
- the version string
-
getVersionMajor
int getVersionMajor()Extracts the major version from the version string- Returns:
- the major version
-
getVersionMinor
int getVersionMinor()Extracts the minor version from the version string- Returns:
- the minor version
-
getName
String getName()- Returns:
- the name of the platform
-
getVendor
String getVendor()- Returns:
- the vendor of the platform
-
hasOpenGLInterop
boolean hasOpenGLInterop()Queries if this platform supports OpenGL interop at all. This value has also to be tested for every device.- Returns:
trueif OpenGL interop is supported
-
hasExtension
Queries if the specified extension is available. This value has to be tested also for every device.- Parameters:
extension- the extension string- Returns:
trueif this extension is supported by the platform (however, not all devices might support it as well)
-
getExtensions
Collection<? extends String> getExtensions()- Returns:
- All available extensions
-