Class Callbacks

java.lang.Object
overrungl.glfw.Callbacks

public final class Callbacks extends Object
Callbacks relies on preview features of the Java platform:
Programs can only use Callbacks when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
The GLFW window callbacks.
Since:
0.1.0
Author:
squid233
  • Method Details

    • create

      public static ArenaPREVIEW create(MemorySegmentPREVIEW window)
      Creates an arena for the given window. The callbacks are available until free(MemorySegment)PREVIEW has been called.
      Parameters:
      window - the window address.
      Returns:
      the arena.
    • free

      public static void free(MemorySegmentPREVIEW window)
      Closes the arena for the given window.
      Parameters:
      window - the window address.