Class GLFWErrorCallback

    • Method Detail

      • create

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

        public static GLFWErrorCallback createSafe​(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • 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.

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

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

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