glfwCocoaBind

Undocumented in source.
version(BindGLFW_Dynamic)
@nogc nothrow
static if(!(bindWindows))
static if(bindMac)
static if(glfwSupport >= GLFWSupport.glfw31)
enum glfwCocoaBind = q{ extern(C) @nogc nothrow { alias pglfwGetCocoaMonitor = CGDirectDisplayID function(GLFWmonitor* monitor); alias pglfwGetCocoaWindow = id function(GLFWwindow* window); } __gshared { pglfwGetCocoaMonitor glfwGetCocoaMonitor; pglfwGetCocoaWindow glfwGetCocoaWindow; } @nogc nothrow bool loadGLFW_Cocoa() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetCocoaMonitor, "glfwGetCocoaMonitor"); bindGLFWSymbol(cast(void**)&glfwGetCocoaWindow,"glfwGetCocoaWindow"); return errorCount() == errCount; } };

Meta