blob: 61b2a9cb19f7b47e73b37edae5d75c2fbb811c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#+build darwin
package glfw
import NS "core:sys/darwin/Foundation"
@(default_calling_convention="c", link_prefix="glfw")
foreign {
GetCocoaWindow :: proc(window: WindowHandle) -> ^NS.Window ---
GetCocoaView :: proc(window: WindowHandle) -> ^NS.View ---
}
// TODO:
// CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
// id glfwGetNSGLContext(GLFWwindow* window);
|