From d61362d8fb463caf759d7a7cff9b864c9ecce28a Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 26 Feb 2022 21:44:41 -0700 Subject: [PATCH] glfw: expose Native BackendOptions Signed-off-by: Stephen Gutekanst --- glfw/src/main.zig | 1 + glfw/src/native.zig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/glfw/src/main.zig b/glfw/src/main.zig index 50ec9f07..22cfd66a 100644 --- a/glfw/src/main.zig +++ b/glfw/src/main.zig @@ -28,6 +28,7 @@ pub const VideoMode = @import("VideoMode.zig"); pub const Window = @import("Window.zig"); pub const Cursor = @import("Cursor.zig"); pub const Native = @import("native.zig").Native; +pub const BackendOptions = @import("native.zig").BackendOptions; pub const Key = key.Key; pub usingnamespace @import("clipboard.zig"); diff --git a/glfw/src/native.zig b/glfw/src/native.zig index 299ab42e..81d30a06 100644 --- a/glfw/src/native.zig +++ b/glfw/src/native.zig @@ -8,7 +8,7 @@ const getError = @import("errors.zig").getError; const internal_debug = @import("internal_debug.zig"); -const BackendOptions = struct { +pub const BackendOptions = struct { win32: bool = false, wgl: bool = false, cocoa: bool = false,