Class GLVersion
- java.lang.Object
-
- com.badlogic.gdx.graphics.glutils.GLVersion
-
public class GLVersion extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGLVersion.Type
-
Constructor Summary
Constructors Constructor Description GLVersion(Application.ApplicationType appType, java.lang.String versionString, java.lang.String vendorString, java.lang.String rendererString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDebugVersionString()intgetMajorVersion()intgetMinorVersion()intgetReleaseVersion()java.lang.StringgetRendererString()GLVersion.TypegetType()java.lang.StringgetVendorString()booleanisVersionEqualToOrHigher(int testMajorVersion, int testMinorVersion)Checks to see if the current GL connection version is higher, or equal to the provided test versions.
-
-
-
Constructor Detail
-
GLVersion
public GLVersion(Application.ApplicationType appType, java.lang.String versionString, java.lang.String vendorString, java.lang.String rendererString)
-
-
Method Detail
-
getType
public GLVersion.Type getType()
- Returns:
- what
GLVersion.Typeof GL implementation this application has access to, e.g.GLVersion.Type.OpenGLorGLVersion.Type.GLES
-
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 againsttestMinorVersion- 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
-
-