Class Pine

java.lang.Object
dev.prozilla.pine.Pine

public final class Pine extends Object
Utility class used for querying system/library information.
  • Field Details

    • VERSION_MAJOR

      public static final int VERSION_MAJOR
      Current major version of Pine.
      See Also:
    • VERSION_MINOR

      public static final int VERSION_MINOR
      Current minor version of Pine.
      See Also:
    • VERSION_PATCH

      public static final int VERSION_PATCH
      Current patch version of Pine.
      See Also:
  • Method Details

    • getVersion

      public static String getVersion()
      Returns the version of Pine.
      Returns:
      The Pine version
    • getPlatformName

      public static String getPlatformName()
      Returns the name of the platform Pine is running on.
      Returns:
      The name of the platform
    • getPlatform

      public static Platform getPlatform()
      Returns the platform Pine is running on.
      Returns:
      The platform
    • getArchitecture

      public static Platform.Architecture getArchitecture()
      Returns the architecture Pine is running on.
      Returns:
      The architecture
    • getJavaVersion

      public static String getJavaVersion()
      Returns the version of Java.
      Returns:
      The Java version
    • getLWJGLVersion

      public static String getLWJGLVersion()
      Returns the version of LWJGL.
      Returns:
      The LWJGL version
    • getGLVersion

      public static String getGLVersion() throws IllegalStateException
      Returns the version of OpenGL.
      Returns:
      The OpenGL version
      Throws:
      IllegalStateException - If OpenGL has not been initialized yet.
    • getGLRenderer

      public static String getGLRenderer()
      Returns the renderer of OpenGL.
      Returns:
      The renderer of OpenGL
      Throws:
      IllegalStateException - If OpenGL has not been initialized yet.
    • getGLFWVersion

      public static String 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

      public static void print(Logger logger)
      Prints all system and library information.