Commit graph

161 commits

Author SHA1 Message Date
Stephen Gutekanst
6a7f294ee8
README: use less bright background for dark theme 2021-07-17 12:04:03 -07:00
Stephen Gutekanst
ff53a38316
README: add white background + tagline to logo 2021-07-17 11:34:10 -07:00
Stephen Gutekanst
5f4fb8b400 glfw: only keep test window open for 100ms
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 17:09:28 -07:00
Stephen Gutekanst
d9797481d2 glfw: add monitor.getWorkarea
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 17:07:48 -07:00
Stephen Gutekanst
cfcd97d167 glfw: add Monitor.getPos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:57:50 -07:00
Stephen Gutekanst
8ade50719d glfw: correctly test Monitor implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:56:58 -07:00
Stephen Gutekanst
10eb3b5680 glfw: add monitors.getPrimary
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:42:03 -07:00
Stephen Gutekanst
04cbfb2e1e glfw: add monitor.getAll support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:36:57 -07:00
Stephen Gutekanst
1cedf40671 glfw: make init inline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:35:42 -07:00
Stephen Gutekanst
bda78aca74 glfw: add getVersionString
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 16:00:28 -07:00
Stephen Gutekanst
c1dcabb72b glfw: add initHint function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:50:35 -07:00
Stephen Gutekanst
2bb3b934e1 glfw: add terminate function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:24:45 -07:00
Stephen Gutekanst
7cae2818f3 glfw: correct C key / C import conflict
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:07:26 -07:00
Stephen Gutekanst
f533747fa8 glfw: add init function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:07:06 -07:00
Stephen Gutekanst
1b1e184129 glfw: add error handling
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 15:06:35 -07:00
Stephen Gutekanst
4b5f94c4ea glfw: add C -> Zig error translation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 14:27:34 -07:00
Stephen Gutekanst
61eafbf69a glfw: add general constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 13:26:11 -07:00
Stephen Gutekanst
d0be590230 glfw: add gamepad button IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:31:53 -07:00
Stephen Gutekanst
98280d3be7 glfw: add gamepad axis
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:31:22 -07:00
Stephen Gutekanst
fcc289a0eb glfw: add joystick IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:24:08 -07:00
Stephen Gutekanst
3b2f39daaa glfw: add mouse button IDs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:20:32 -07:00
Stephen Gutekanst
a5cc868643 glfw: add modifier key flags
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:15:49 -07:00
Stephen Gutekanst
f8a6f2fd74 glfw: add keyboard key ID constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 12:11:12 -07:00
Stephen Gutekanst
161b0a540f glfw: correct comment style
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:52:38 -07:00
Stephen Gutekanst
73055427ad glfw: add joystick hat states
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:41:51 -07:00
Stephen Gutekanst
025891f0b9 glfw: add top-level comments
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:36:31 -07:00
Stephen Gutekanst
6308a2f8dd glfw: move constants into separate modules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:34:18 -07:00
Stephen Gutekanst
166d621797 glfw: add key/button action constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:31:02 -07:00
Stephen Gutekanst
c0c7305738 glfw: add version constants
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 11:21:51 -07:00
Stephen Gutekanst
0a7e8d341c
CI: add macOS testing pipeline (#2)
* CI: add macOS testing pipeline
* glfw: use hidden window

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-16 10:57:37 -07:00
Stephen Gutekanst
395fad07a6 CI: use install, not test, target on Windows
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
bfe841880d glfw: handle windows \r\n in Apple SDK prompt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
161e07575a glfw: link libc
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
c4d4953f28 glfw: use cross-platform getEnvVarOwned
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
7cf35c54e9 CI: add tests for Windows
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
93ead5c9eb glfw: remove symlinks from SDKs (using them on windows is annoying)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-11 15:22:58 -07:00
Stephen Gutekanst
25bfde3acf glfw: be sure to clone SDKs with symlinks
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 17:26:32 -07:00
Stephen Gutekanst
d0ff7bb2e9 glfw: correct Linux -> MacOS cross compilation (header includes)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 16:07:41 -07:00
Stephen Gutekanst
a60232e06b CI: agree to xcode license
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 15:19:53 -07:00
Stephen Gutekanst
1f251d4e28 CI: test Linux->MacOS cross compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 14:48:02 -07:00
Stephen Gutekanst
add19e2577 add -Dtarget option
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 14:47:32 -07:00
Stephen Gutekanst
c3da3c9804 glfw: fix -Dtarget=x86_64-macos compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 14:47:10 -07:00
Stephen Gutekanst
c5c278232a glfw: build Linux sources
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 11:25:04 -07:00
Stephen Gutekanst
e19751d91a glfw: tidy up Options struct
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 10:04:18 -07:00
Stephen Gutekanst
2d98b0d382 glfw: build windows sources
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 10:04:18 -07:00
Stephen Gutekanst
12321d89df
README: add logo 2021-07-10 01:11:39 -07:00
Stephen Gutekanst
bba27cf1aa glfw: macOS cross compilation with automatic setup
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-10 01:01:51 -07:00
Stephen Gutekanst
91be49b733 CI: fix test path
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-07 19:24:01 -07:00
Stephen Gutekanst
f639ed395d
README: better tagline 2021-07-07 19:21:31 -07:00
Stephen Gutekanst
2654c1c3b1 README: change name to Mach engine
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-07 19:18:19 -07:00