bindGLFW_Windows

Undocumented in source.
  1. enum bindGLFW_Windows;
    version(BindGLFW_Dynamic)
    @nogc nothrow
    static if(bindWindows)
    static if(glfwSupport >= GLFWSupport.glfw31)
    enum bindGLFW_Windows = q{ extern(C) @nogc nothrow { alias pglfwGetWin32Adapter = const(char)* function(GLFWmonitor* monitor); alias pglfwGetWin32Monitor = const(char)* function(GLFWmonitor* monitor); alias pglfwGetWin32Window = HWND function(GLFWwindow* window); } __gshared { pglfwGetWin32Adapter glfwGetWin32Adapter; pglfwGetWin32Monitor glfwGetWin32Monitor; pglfwGetWin32Window glfwGetWin32Window; } @nogc nothrow bool loadGLFW_Windows() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetWin32Adapter, "glfwGetWin32Adapter"); bindGLFWSymbol(cast(void**)&glfwGetWin32Monitor, "glfwGetWin32Monitor"); bindGLFWSymbol(cast(void**)&glfwGetWin32Window,"glfwGetWin32Window"); return errorCount() == errCount; } };
  2. enum bindGLFW_Windows;

Meta