Class GLFWErrorCallback

    • Method Detail

      • create

        public static GLFWErrorCallback create(long functionPointer)
        Creates a GLFWErrorCallback instance from the specified function pointer.
      • create

        public static GLFWErrorCallback create(GLFWErrorCallbackI instance)
        Creates a GLFWErrorCallback instance that delegates to the specified GLFWErrorCallbackI instance.
      • getDescription

        public static java.lang.String getDescription(long description)
        Converts the specified GLFWErrorCallback argument to a String.

        This method may only be used inside a GLFWErrorCallback invocation.

        Parameters:
        description - pointer to the UTF-8 encoded description string
        Returns:
        the description as a String
      • createPrint

        public static GLFWErrorCallback createPrint(java.io.PrintStream stream)
        Returns a GLFWErrorCallback instance that prints the error in the specified PrintStream.
        Parameters:
        stream - the PrintStream to use
        Returns:
        the GLFWerrorCallback
      • createThrow

        public static GLFWErrorCallback createThrow()
        Returns a GLFWErrorCallback instance that throws an IllegalStateException when an error occurs.
        Returns:
        the GLFWerrorCallback