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 Platform
public java.lang.String getProfile()
getProfile
in interface Platform
public boolean isFullProfile()
isFullProfile
in interface Platform
true
if this platform implements the full profilepublic boolean isEmbeddedProfile()
isEmbeddedProfile
in interface Platform
true
if this platform implements the embedded profilepublic java.lang.String getVersion()
getVersion
in interface Platform
public int getVersionMajor()
Platform
getVersionMajor
in interface Platform
public int getVersionMinor()
Platform
getVersionMinor
in interface Platform
public java.lang.String getName()
public java.lang.String getVendor()
public boolean hasExtension(java.lang.String extension)
Platform
hasExtension
in interface Platform
extension
- the extension stringtrue
if this extension is supported by the platform
(however, not all devices might support it as well)public boolean hasOpenGLInterop()
Platform
hasOpenGLInterop
in interface Platform
true
if OpenGL interop is supportedpublic java.util.Collection<? extends java.lang.String> getExtensions()
getExtensions
in interface Platform
public java.lang.String toString()
toString
in class java.lang.Object