mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 11:22:22 -07:00
30 lines
727 B
Odin
30 lines
727 B
Odin
//+build windows
|
|
|
|
package glfw
|
|
|
|
import win32 "core:sys/windows"
|
|
|
|
when GLFW_SHARED {
|
|
foreign import glfw {
|
|
"lib/glfw3dll.lib",
|
|
"system:user32.lib",
|
|
"system:gdi32.lib",
|
|
"system:shell32.lib",
|
|
}
|
|
} else {
|
|
foreign import glfw {
|
|
"lib/glfw3_mt.lib",
|
|
"system:user32.lib",
|
|
"system:gdi32.lib",
|
|
"system:shell32.lib",
|
|
}
|
|
}
|
|
|
|
@(default_calling_convention="c", link_prefix="glfw")
|
|
foreign glfw {
|
|
GetWin32Adapter :: proc(monitor: MonitorHandle) -> cstring ---
|
|
GetWin32Monitor :: proc(monitor: MonitorHandle) -> cstring ---
|
|
GetWin32Window :: proc(window: WindowHandle) -> win32.HWND ---
|
|
GetWGLContext :: proc(window: WindowHandle) -> rawptr ---
|
|
}
|