Class GLFWNativeCocoa

java.lang.Object
org.lwjgl.glfw.GLFWNativeCocoa

public class GLFWNativeCocoa extends Object
Native bindings to the GLFW library's Cocoa native access functions.
  • Method Details

    • glfwGetCocoaMonitor

      public static int glfwGetCocoaMonitor(long monitor)
      Returns the CGDirectDisplayID of the specified monitor.

      Note: This function may be called from any thread. Access is not synchronized.

      Parameters:
      monitor - the GLFW monitor
      Returns:
      the CGDirectDisplayID of the specified monitor, or kCGNullDirectDisplay if an error occurred.

      Possible errors include NOT_INITIALIZED.

      Since:
      version 3.1
    • glfwGetCocoaWindow

      public static long glfwGetCocoaWindow(long window)
      Returns the NSWindow of the specified GLFW window.

      Note: This function may be called from any thread. Access is not synchronized.

      Parameters:
      window - the GLFW window
      Returns:
      the NSWindow of the specified window, or nil if an error occurred.

      Possible errors include NOT_INITIALIZED.

      Since:
      version 3.0