Class GLVersion


  • public class GLVersion
    extends java.lang.Object
    • Constructor Detail

      • GLVersion

        public GLVersion​(Application.ApplicationType appType,
                         java.lang.String versionString,
                         java.lang.String vendorString,
                         java.lang.String rendererString)
    • Method Detail

      • getMajorVersion

        public int getMajorVersion()
        Returns:
        the major version of current GL connection. -1 if running headless
      • getMinorVersion

        public int getMinorVersion()
        Returns:
        the minor version of the current GL connection. -1 if running headless
      • getReleaseVersion

        public int getReleaseVersion()
        Returns:
        the release version of the current GL connection. -1 if running headless
      • getVendorString

        public java.lang.String getVendorString()
        Returns:
        the vendor string associated with the current GL connection
      • getRendererString

        public java.lang.String getRendererString()
        Returns:
        the name of the renderer associated with the current GL connection. This name is typically specific to a particular configuration of a hardware platform.
      • isVersionEqualToOrHigher

        public boolean isVersionEqualToOrHigher​(int testMajorVersion,
                                                int testMinorVersion)
        Checks to see if the current GL connection version is higher, or equal to the provided test versions.
        Parameters:
        testMajorVersion - the major version to test against
        testMinorVersion - the minor version to test against
        Returns:
        true if the current version is higher or equal to the test version
      • getDebugVersionString

        public java.lang.String getDebugVersionString()
        Returns:
        a string with the current GL connection data