Package org.lwjgl.glfw
Class GLFWNativeCocoa
- java.lang.Object
-
- org.lwjgl.glfw.GLFWNativeCocoa
-
public class GLFWNativeCocoa extends java.lang.ObjectNative bindings to the GLFW library's Cocoa native access functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classGLFWNativeCocoa.FunctionsContains the function pointers loaded fromGLFW.getLibrary().
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intglfwGetCocoaMonitor(long monitor)Returns theCGDirectDisplayIDof the specified monitor.static longglfwGetCocoaWindow(long window)Returns theNSWindowof the specified GLFW window.
-
-
-
Method Detail
-
glfwGetCocoaMonitor
public static int glfwGetCocoaMonitor(long monitor)
Returns theCGDirectDisplayIDof the specified monitor.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
monitor- the GLFW monitor- Returns:
- The
CGDirectDisplayIDof the specified monitor, orkCGNullDirectDisplayif an error occurred. - Since:
- version 3.1
-
glfwGetCocoaWindow
public static long glfwGetCocoaWindow(long window)
Returns theNSWindowof the specified GLFW window.Note: This function may be called from any thread. Access is not synchronized.
- Parameters:
window- the GLFW window- Returns:
- The
NSWindowof the specified window, or nil if an error occurred. - Since:
- version 3.0
-
-