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

glfw: Window hints rework #71

Merged
merged 21 commits into from Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5a6181a
glfw: make comments into doc comments
InKryption Nov 11, 2021
74db6e1
glfw: Publicize Window.CursorPos, Window.Size, Window.Pos, and Window…
InKryption Nov 11, 2021
93c6e50
glfw: Make enum value name the same format as other enum value names
InKryption Nov 11, 2021
1e676e6
glfw: Window hints rework patch
InKryption Nov 11, 2021
2fa75f2
glfw: Relegate `Window.hint` to testing; move it down to just above t…
InKryption Nov 12, 2021
0e4f424
glfw: handle error `Error.InvalidEnum` explicitly, for clear error me…
InKryption Nov 12, 2021
9c5ced0
glfw: instate `Hint.context_no_error` as a hint, as it actually is sp…
InKryption Nov 12, 2021
9a9e556
glfw: default `context_no_error` to `false`, and added a note of caut…
InKryption Nov 12, 2021
b259c5f
glfw: Inline enum values of `ClientApi`, `ContextCreationApi`, `Conte…
InKryption Nov 12, 2021
5b87cad
glfw: Reference `Window.Hint` enum instead of `Window.Hints` struct t…
InKryption Nov 12, 2021
3f43c97
glfw: add comment explaining default values of `Window.Hints`
InKryption Nov 15, 2021
d5913c3
glfw: change `OpenGlProfile` to `OpenGLProfile` based on established …
InKryption Nov 15, 2021
4b8db1e
glfw: Update actual declaration of `OpenGLProfile`
InKryption Nov 15, 2021
df0a837
glfw: call `Window.defaultHints` after window creation, not before
InKryption Nov 15, 2021
fdc8243
glfw: remove 'consts.zig', and move `dont_care` directly into 'main.z…
InKryption Nov 15, 2021
8c0523c
glfw: put `Window.defaultHints` into defer statement to handle cleanu…
InKryption Nov 15, 2021
5e2f696
glfw: move `Hint.focused` to match position of `Hints.focused`
InKryption Nov 16, 2021
e68cba0
glfw: Fix merge conflict in 'Window.zig' concerning `Window.Hint.focu…
InKryption Nov 16, 2021
11bbcec
glfw: do 'zig fmt glfw/src'
InKryption Nov 16, 2021
77efb6a
glfw: Cull `Window.Hint` comments, polish remaining; match order enti…
InKryption Nov 16, 2021
42a1ce1
glfw: Change `Window.Hints.*Api` to `Window.Hints.*API`
InKryption Nov 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion glfw/README.md
Expand Up @@ -71,7 +71,7 @@ pub fn main() !void {
defer glfw.terminate();

// Create our window
const window = try glfw.Window.create(640, 480, "Hello, mach-glfw!", null, null);
const window = try glfw.Window.create(640, 480, "Hello, mach-glfw!", null, null, .{});
defer window.destroy();

// Wait for the user to close the window.
Expand Down