Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make glfw.Window.Hints.set public #42

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ pub const Hints = struct {
any = @bitCast(c.GLFW_ANY_POSITION),
};

fn set(hints: Hints) void {
/// **WARNING:** You should always use `glfw.Window.create` instead of this function whenever possible. Only use this if absolutely neccessary.
///
/// Sets `hints` for the next window creation.
pub fn set(hints: Hints) void {
internal_debug.assertInitialized();
inline for (comptime std.meta.fieldNames(Hint)) |field_name| {
const hint_tag = @intFromEnum(@field(Hint, field_name));
Expand Down
Loading