Package dev.prozilla.pine
Class Pine
java.lang.Object
dev.prozilla.pine.Pine
Utility class used for querying system/library information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Current major version of Pine.static final int
Current minor version of Pine.static final int
Current patch version of Pine. -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.Architecture
Returns the architecture Pine is running on.static String
Returns the version of GLFW.static String
Returns the renderer of OpenGL.static String
Returns the version of OpenGL.static String
Returns the version of Java.static String
Returns the version of LWJGL.static Platform
Returns the platform Pine is running on.static String
Returns the name of the platform Pine is running on.static String
Returns the version of Pine.static void
print()
Prints all system and library information to the system logger.static void
Prints all system and library information.
-
Field Details
-
VERSION_MAJOR
public static final int VERSION_MAJORCurrent major version of Pine.- See Also:
-
VERSION_MINOR
public static final int VERSION_MINORCurrent minor version of Pine.- See Also:
-
VERSION_PATCH
public static final int VERSION_PATCHCurrent patch version of Pine.- See Also:
-
-
Method Details
-
getVersion
Returns the version of Pine.- Returns:
- The Pine version
-
getPlatformName
Returns the name of the platform Pine is running on.- Returns:
- The name of the platform
-
getPlatform
Returns the platform Pine is running on.- Returns:
- The platform
-
getArchitecture
Returns the architecture Pine is running on.- Returns:
- The architecture
-
getJavaVersion
Returns the version of Java.- Returns:
- The Java version
-
getLWJGLVersion
Returns the version of LWJGL.- Returns:
- The LWJGL version
-
getGLVersion
Returns the version of OpenGL.- Returns:
- The OpenGL version
- Throws:
IllegalStateException
- If OpenGL has not been initialized yet.
-
getGLRenderer
Returns the renderer of OpenGL.- Returns:
- The renderer of OpenGL
- Throws:
IllegalStateException
- If OpenGL has not been initialized yet.
-
getGLFWVersion
Returns the version of GLFW.- Returns:
- The GLFW version
-
print
public static void print()Prints all system and library information to the system logger. -
print
Prints all system and library information.
-