Ali Chraghi
50719f5347
glfw: fix typo prevents building for Wayland
2021-11-15 17:49:13 -07:00
Stephen Gutekanst
fd703e98e4
glfw: update setIcon hotfix for undefined behavior
...
See https://github.com/GLFW/glfw/pull/1986
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-16 00:22:45 +00:00
Silver
82a9cf616d
glfw: patch more undefined behaviour
...
See glfw/glfw#1989
2021-11-15 16:22:39 -07:00
Ali Chraghi
83854e27a6
Update README.md
2021-11-15 16:14:38 -07:00
slimsag
68da50085f
README: regenerate sponsors section
2021-11-15 22:37:30 +00:00
InKryption
e486794be3
glfw: Make enum value name the same format as other enum value names
2021-11-15 15:37:07 -07:00
InKryption
eef166e90b
glfw: Publicize Window.CursorPos, Window.Size, Window.Pos, and Window.FrameSize
2021-11-15 15:37:07 -07:00
InKryption
2214e91ad5
glfw: make comments into doc comments
2021-11-15 15:37:07 -07:00
slimsag
ac4eb8216c
README: regenerate sponsors section
2021-11-10 18:42:48 +00:00
InKryption
220c285798
glfw: Update readme to reflect changes made to glfw.init
2021-11-10 11:42:24 -07:00
InKryption
f00367e696
glfw: Update tests in all other files to reflect changes made to glfw.init
2021-11-10 11:42:24 -07:00
InKryption
e9175fb9f1
glfw: change init function to accept hints as paramaters via new InitHints struct which has default field values reflecting the default values specified by GLFW current documentation, privatize hint-setting wrapper API, and update tests
2021-11-10 11:42:24 -07:00
Stephen Gutekanst
0d12fd5713
add missing glfw subtree metadata
...
git-subtree-dir: glfw
git-subtree-mainline: 0d84c25938
git-subtree-split: 03fc8bc42417fbc1e770103f4b9c0e6127b05a1b
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 21:07:05 -07:00
Stephen Gutekanst
c4ecd49545
glfw: inform in PR template to send all PRs to main repository
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 20:57:31 -07:00
Stephen Gutekanst
5aee3671dd
glfw: send pull requests to the main repository to avoid merge conflicts
...
When changes are merged to both hexops/mach and hexops/mach-glfw, we get a conflict
which is difficult to resolve with `git subtree`, particularly because we don't want
to squash commits for either repository (we prefer to maintain the full commit history
in both repos.)
Instead, require that all pull requests be sent to the main hexops/mach repository.
That's not as nice, I admit, but should be pretty easy to handle (literally just copy
changes over) and will ensure we can always keep both repos in sync easily and without
conflict.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 20:51:16 -07:00
Noora Heinsuo
0d84c25938
Fix code example ( #1 )
2021-11-07 18:43:38 -07:00
Stephen Gutekanst
a3a9bfab00
README: make sponsors section less tacky
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 13:18:28 -07:00
slimsag
3c71d59e0a
README: regenerate sponsors section
2021-11-07 20:17:17 +00:00
Stephen Gutekanst
656a7e4745
CI: correct generation of Silver sponsors section
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 13:16:36 -07:00
slimsag
ccf55418f8
README: regenerate sponsors section
2021-11-07 20:12:36 +00:00
Stephen Gutekanst
78decaf6af
CI: correct sponsors README generation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 12:45:15 -07:00
Stephen Gutekanst
f657d69852
CI: correct sponsors README generation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 10:13:31 -07:00
slimsag
d0b8951c19
README: regenerate sponsors section
2021-11-07 16:43:09 +00:00
Stephen Gutekanst
20d91fd961
CI: correct sponsors README generation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 09:42:39 -07:00
Stephen Gutekanst
fea135afba
README: add sponsors section as promised
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-07 09:19:01 -07:00
Stephen Gutekanst
9f906cfd94
glfw: fix linking difference between sysroot and non-sysroot ( #63 )
...
This effectively gives us the dependencies we need in any case, and works around ziglang/zig#10103
Importantly, this removes a blocker for landing WebGPU support in hexops/mach#62
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-11-05 12:20:24 -07:00
Stephen Gutekanst
9bc9984930
glfw: hot patch undefined behavior in GLFW that went unnoticed 6+ years
...
Upstream pull request: https://github.com/glfw/glfw/pull/1986
Article: https://devlog.hexops.com/2021/perfecting-glfw-for-zig-and-finding-undefined-behavior
Fixes hexops/mach#20
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 11:50:09 -07:00
Stephen Gutekanst
93110e82ca
README: polish, add News section, etc
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 11:20:41 -07:00
Stephen Gutekanst
61e2b38250
glfw: add Vulkan example to README
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 01:14:46 -07:00
Stephen Gutekanst
6b9c28cec1
glfw: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 01:00:56 -07:00
Stephen Gutekanst
c16d6bf615
glfw: improve ABI compatability with zig-vulkan library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-31 01:00:02 -07:00
Stephen Gutekanst
e0cf70f045
glfw: expose system SDK build options
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 21:47:48 -07:00
Stephen Gutekanst
7d3ea16de6
glfw: refactor system SDK inclusion into helper file
...
This refactors the logic for system SDK inclusion out of the GLFW-specific `build.zig`,
and should make it very easy for anyone to copy this file and start getting cross-platform
builds of their own OpenGL/Vulkan Zig projects.
There may be some libraries we need to add for Vulkan to these SDKs, I haven't yet tested
that - but the overall idea here seems sound.
Fixes hexops/mach#39
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 21:31:52 -07:00
Stephen Gutekanst
6b12b42f7c
glfw: update README, send pull requests to the main repo if possible
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 21:23:17 -07:00
Stephen Gutekanst
adeb906e33
glfw: improve README, add getting started, error handling, etc
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 21:23:17 -07:00
Stephen Gutekanst
7264741ede
glfw: make init hints a proper enum
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
f1644d2e59
glfw: make monitor/joystick events a proper enum
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
bec6f7a85b
glfw: add [set|get]InputModeRawMouseMotion variants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
9d642c199f
glfw: add [set|get]InputModeLockKeyMods variants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
02240a7f92
glfw: add [set|get]InputModeStickyMouseButtons variants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
d222c44d8f
glfw: add setInputModeStickyKeys/getInputModeStickyKeys variants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
d3307266aa
glfw: add setInputModeCursor/getInputModeCursor variants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
7806709a90
glfw: make mouse buttons a proper enum
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
4d1b92666b
glfw: expose aliased gamepad axis/button constants
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
8c36ea36f8
glfw: identify remaining constants for enumification
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
82a4d02397
glfw: remove duplicated window hints (removed in 14964fa)
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
8df412ed90
glfw: make Window attributes a proper enum
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
65d8d2d10f
glfw: make Window hints a proper enum
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
2e6b73b388
glfw: make setKeyCallback use Key enum directly
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00
Stephen Gutekanst
f6f758859a
glfw: make setMouseButtonCallback use Mods bitmask directly
...
Helps hexops/mach#37
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-10-30 20:06:03 -07:00