Stephen Gutekanst
|
72f09b4f32
|
glfw: fix and test VideoMode getters
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:56:48 -07:00 |
|
Stephen Gutekanst
|
5238e52d76
|
glfw: add Monitor.setGamma; return concrete Error types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:50:41 -07:00 |
|
Stephen Gutekanst
|
ed83d5128c
|
glfw: cleanup VideoMode imports
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:49:23 -07:00 |
|
Stephen Gutekanst
|
ee11697769
|
glfw: add Monitor.getVideoMode
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:43:37 -07:00 |
|
Stephen Gutekanst
|
40e1520372
|
glfw: correct import references
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:19:46 -07:00 |
|
Stephen Gutekanst
|
c6e8bce219
|
glfw: fix and test Monitor.getVideoModes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:15:40 -07:00 |
|
Stephen Gutekanst
|
b76e8d02f2
|
glfw: deduplicate @cImport for type equivalence
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:14:09 -07:00 |
|
Stephen Gutekanst
|
74e2bddf93
|
glfw: add VideoMode type; add Monitor.getVideoModes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 19:57:07 -07:00 |
|
Stephen Gutekanst
|
1c10b309b2
|
glfw: inline getError helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:24:46 -07:00 |
|
Stephen Gutekanst
|
0af761d046
|
glfw: clarify Monitor.setCallback docs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:23:01 -07:00 |
|
Stephen Gutekanst
|
c5b89fef2e
|
glfw: fix Monitor.getUserPointer alignment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:18:12 -07:00 |
|
Stephen Gutekanst
|
9cac08b3b9
|
glfw: add Monitor.setCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 15:31:31 -07:00 |
|
Stephen Gutekanst
|
30debe452c
|
glfw: correct Monitor.getAll error checking; fix tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 14:06:19 -07:00 |
|
Stephen Gutekanst
|
309b71d600
|
glfw: correctly check for Monitor.getAll errors
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 14:02:07 -07:00 |
|
Stephen Gutekanst
|
6cfac34405
|
glfw: inline Monitor functions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 14:00:57 -07:00 |
|
Stephen Gutekanst
|
26e0db2064
|
glfw: always check init errors
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 13:59:26 -07:00 |
|
Stephen Gutekanst
|
003a1db2e6
|
glfw: add Monitor.setUserPointer, Monitor.getUserPointer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
d57a53df49
|
glfw: add Monitor.getName function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
57c9ae9a40
|
glfw: add Monitor.getContentScale
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
213f4bf786
|
glfw: add Monitor.getPhysicalSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
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 |
|