bindGLFW_X11

Undocumented in source.
  1. enum bindGLFW_X11;
  2. enum bindGLFW_X11;
    version(BindGLFW_Dynamic)
    @nogc nothrow
    static if(!(bindWindows))
    static if(!(bindMac))
    static if(bindPosix && !bindAndroid)
    static if(!(glfwSupport >= GLFWSupport.glfw33))
    static if(glfwSupport >= GLFWSupport.glfw31)
    enum bindGLFW_X11 = q{ extern(C) @nogc nothrow { alias pglfwGetX11Display = Display* function(); alias pglfwGetX11Window = Window function(GLFWwindow* window); alias pglfwGetX11Adapter = RRCrtc function(GLFWmonitor* monitor); alias pglfwGetX11Monitor = RROutput function(GLFWmonitor* monitor); } __gshared { pglfwGetX11Display glfwGetX11Display; pglfwGetX11Window glfwGetX11Window; pglfwGetX11Adapter glfwGetX11Adapter; pglfwGetX11Monitor glfwGetX11Monitor; } @nogc nothrow bool loadGLFW_X11() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetX11Display, "glfwGetX11Display"); bindGLFWSymbol(cast(void**)&glfwGetX11Window,"glfwGetX11Window"); bindGLFWSymbol(cast(void**)&glfwGetX11Adapter, "glfwGetX11Adapter"); bindGLFWSymbol(cast(void**)&glfwGetX11Monitor,"glfwGetX11Monitor"); return errorCount() == errCount; } };
  3. enum bindGLFW_X11;

Meta