Add vendor:wgpu

This commit is contained in:
Laytan Laats
2024-06-12 17:22:02 +02:00
parent 68781f8dd3
commit 108b8feb35
23 changed files with 5430 additions and 18 deletions
+14 -10
View File
@@ -2,14 +2,18 @@
package glfw
// TODO: Native Linux
// Display* glfwGetX11Display(void);
// RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
// RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
// Window glfwGetX11Window(GLFWwindow* window);
// void glfwSetX11SelectionString(const char* string);
// const char* glfwGetX11SelectionString(void);
import "vendor:x11/xlib"
// struct wl_display* glfwGetWaylandDisplay(void);
// struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
// struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window);
@(default_calling_convention="c", link_prefix="glfw")
foreign {
GetX11Display :: proc() -> ^xlib.Display ---
GetX11Window :: proc(window: WindowHandle) -> xlib.Window ---
GetX11Adapter :: proc(monitor: MonitorHandle) -> xlib.RRCrtc ---
GetX11Monitor :: proc(monitor: MonitorHandle) -> xlib.RROutput ---
SetX11SelectionString :: proc(string: cstring) ---
GetX11SelectionString :: proc() -> cstring ---
GetWaylandDisplay :: proc() -> rawptr /* struct wl_display* */ ---
GetWaylandWindow :: proc(window: WindowHandle) -> rawptr /* struct wl_surface* */ ---
GetWaylandMonitor :: proc(monitor: MonitorHandle) -> rawptr /* struct wl_output* */ ---
}