Class LwjglPlatform

java.lang.Object
com.jme3.opencl.lwjgl.LwjglPlatform
All Implemented Interfaces:
Platform

public final class LwjglPlatform extends Object implements Platform
  • Constructor Details

    • LwjglPlatform

      public LwjglPlatform(org.lwjgl.opencl.CLPlatform platform)
  • Method Details

    • getPlatform

      public org.lwjgl.opencl.CLPlatform getPlatform()
    • getDevices

      public List<LwjglDevice> getDevices()
      Specified by:
      getDevices in interface Platform
      Returns:
      the list of available devices for this platform
    • getProfile

      public String getProfile()
      Specified by:
      getProfile in interface Platform
      Returns:
      The profile string
    • isFullProfile

      public boolean isFullProfile()
      Specified by:
      isFullProfile in interface Platform
      Returns:
      true if this platform implements the full profile
    • isEmbeddedProfile

      public boolean isEmbeddedProfile()
      Specified by:
      isEmbeddedProfile in interface Platform
      Returns:
      true if this platform implements the embedded profile
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface Platform
      Returns:
      the version string
    • getVersionMajor

      public int getVersionMajor()
      Description copied from interface: Platform
      Extracts the major version from the version string
      Specified by:
      getVersionMajor in interface Platform
      Returns:
      the major version
    • getVersionMinor

      public int getVersionMinor()
      Description copied from interface: Platform
      Extracts the minor version from the version string
      Specified by:
      getVersionMinor in interface Platform
      Returns:
      the minor version
    • getName

      public String getName()
      Specified by:
      getName in interface Platform
      Returns:
      the name of the platform
    • getVendor

      public String getVendor()
      Specified by:
      getVendor in interface Platform
      Returns:
      the vendor of the platform
    • hasExtension

      public boolean hasExtension(String extension)
      Description copied from interface: Platform
      Queries if the specified extension is available. This value has to be tested also for every device.
      Specified by:
      hasExtension in interface Platform
      Parameters:
      extension - the extension string
      Returns:
      true if this extension is supported by the platform (however, not all devices might support it as well)
    • hasOpenGLInterop

      public boolean hasOpenGLInterop()
      Description copied from interface: Platform
      Queries if this platform supports OpenGL interop at all. This value has also to be tested for every device.
      Specified by:
      hasOpenGLInterop in interface Platform
      Returns:
      true if OpenGL interop is supported
    • getExtensions

      public Collection<? extends String> getExtensions()
      Specified by:
      getExtensions in interface Platform
      Returns:
      All available extensions
    • toString

      public String toString()
      Overrides:
      toString in class Object