gbindGLFW_Wayland

Undocumented in source.
version(BindGLFW_Dynamic)
@nogc nothrow
static if(!(bindWindows))
static if(!(bindMac))
static if(bindPosix && !bindAndroid)
static if(glfwSupport >= GLFWSupport.glfw32)
enum gbindGLFW_Wayland = q{ extern(C) @nogc nothrow { alias pglfwGetWaylandDisplay = wl_display* function(); alias pglfwGetWaylandMonitor = wl_output* function(GLFWmonitor* monitor); alias pglfwGetWaylandWindow = wl_surface* function(GLFWwindow* window); } __gshared { pglfwGetWaylandDisplay glfwGetWaylandDisplay; pglfwGetWaylandMonitor glfwGetWaylandMonitor; pglfwGetWaylandWindow glfwGetWaylandWindow; } @nogc nothrow bool loadGLFW_Wayland() { import bindbc.loader.sharedlib : errorCount; if(!isGLFWLoaded) return false; auto errCount = errorCount(); bindGLFWSymbol(cast(void**)&glfwGetWaylandDisplay, "glfwGetWaylandDisplay"); bindGLFWSymbol(cast(void**)&glfwGetWaylandMonitor, "glfwGetWaylandMonitor"); bindGLFWSymbol(cast(void**)&glfwGetWaylandWindow,"glfwGetWaylandWindow"); return errorCount() == errCount; } };

Meta