Class Callbacks


  • public final class Callbacks
    extends java.lang.Object
    Utility class for GLFW callbacks.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void glfwFreeCallbacks​(long window)
      Resets all callbacks for the specified GLFW window to NULL and frees all previously set callbacks.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • glfwFreeCallbacks

        public static void glfwFreeCallbacks​(long window)
        Resets all callbacks for the specified GLFW window to NULL and frees all previously set callbacks.

        This method resets only callbacks registered with a GLFW window. Non-window callbacks (registered with SetErrorCallback, SetMonitorCallback, etc.) must be reset and freed separately.

        This method is not official GLFW API. It exists in LWJGL to simplify window callback cleanup.

        Parameters:
        window - the GLFW window