Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ckrowland/zglfw
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrowland committed Dec 14, 2024
2 parents 5ffed23 + b200f30 commit 9a0755c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/zglfw.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ comptime {
// Misc
//
//--------------------------------------------------------------------------------------------------
pub const Hint = enum(i32) {
pub const InitHint = enum(i32) {
joystick_hat_buttons = 0x00050001,
angle_platform_type = 0x00050002,
platform = 0x00050003,
Expand All @@ -22,10 +22,10 @@ pub const Hint = enum(i32) {
x11_xcb_vulkan_surface = 0x00052001,
wayland_libdecor = 0x00053001,

pub fn set(hint: Hint, value: bool) void {
pub fn set(hint: InitHint, value: bool) void {
glfwInitHint(hint, @intFromBool(value));
}
extern fn glfwInitHint(hint: Hint, value: i32) void;
extern fn glfwInitHint(hint: InitHint, value: i32) void;
};

pub fn init() Error!void {
Expand Down Expand Up @@ -147,10 +147,10 @@ pub fn rawMouseMotionSupported() bool {
extern fn glfwRawMouseMotionSupported() i32;

pub const makeContextCurrent = glfwMakeContextCurrent;
extern fn glfwMakeContextCurrent(window: *Window) void;
extern fn glfwMakeContextCurrent(window: ?*Window) void;

pub const getCurrentContext = glfwGetCurrentContext;
extern fn glfwGetCurrentContext() *Window;
extern fn glfwGetCurrentContext() ?*Window;

pub const swapInterval = glfwSwapInterval;
extern fn glfwSwapInterval(interval: i32) void;
Expand Down

0 comments on commit 9a0755c

Please sign in to comment.