| Constructor and Description |
|---|
LwjglPlatform(org.lwjgl.opencl.CLPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LwjglDevice> |
getDevices() |
java.util.Collection<? extends java.lang.String> |
getExtensions() |
java.lang.String |
getName() |
org.lwjgl.opencl.CLPlatform |
getPlatform() |
java.lang.String |
getProfile() |
java.lang.String |
getVendor() |
java.lang.String |
getVersion() |
int |
getVersionMajor()
Extracts the major version from the version string
|
int |
getVersionMinor()
Extracts the minor version from the version string
|
boolean |
hasExtension(java.lang.String extension)
Queries if the specified extension is available.
|
boolean |
hasOpenGLInterop()
Queries if this platform supports OpenGL interop at all.
|
boolean |
isEmbeddedProfile() |
boolean |
isFullProfile() |
java.lang.String |
toString() |
public org.lwjgl.opencl.CLPlatform getPlatform()
public java.util.List<LwjglDevice> getDevices()
getDevices in interface Platformpublic java.lang.String getProfile()
getProfile in interface Platformpublic boolean isFullProfile()
isFullProfile in interface Platformtrue if this platform implements the full profilepublic boolean isEmbeddedProfile()
isEmbeddedProfile in interface Platformtrue if this platform implements the embedded profilepublic java.lang.String getVersion()
getVersion in interface Platformpublic int getVersionMajor()
PlatformgetVersionMajor in interface Platformpublic int getVersionMinor()
PlatformgetVersionMinor in interface Platformpublic java.lang.String getName()
public java.lang.String getVendor()
public boolean hasExtension(java.lang.String extension)
PlatformhasExtension in interface Platformextension - the extension stringtrue if this extension is supported by the platform
(however, not all devices might support it as well)public boolean hasOpenGLInterop()
PlatformhasOpenGLInterop in interface Platformtrue if OpenGL interop is supportedpublic java.util.Collection<? extends java.lang.String> getExtensions()
getExtensions in interface Platformpublic java.lang.String toString()
toString in class java.lang.Object