Stephen Gutekanst
dca5085f5e
CI: rename mac -> x86_64-macos
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 16:09:28 -07:00
Stephen Gutekanst
ac3ddc4a5a
CI: add aarch64-macos / M1 self-hosted runner
...
Fixes #7
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 16:09:28 -07:00
Stephen Gutekanst
c57a2374ab
README: update state of macOS support
...
Closes #3
2021-07-25 15:33:52 -07:00
Stephen Gutekanst
f9e098c442
glfw: add SDK_PATH for easier testing of changes to SDKs ( #6 )
...
This change makes it easier to test SDKs locally, e.g. if you have:
```
% tree projects/
projects
├── mach
│ └── glfw
└── sdk-macos-11.3
```
In the `projects/mach/glfw` directory it is now easy to test changes to `sdk-macos-11.3` using:
```sh
SDK_PATH="$(pwd)/../.." zig build test -Dtarget=aarch64-macos
```
And it'll use your local SDK, instead of the one in the appdata dir.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-24 13:38:43 -07:00
Stephen Gutekanst
d1591f6b46
glfw: add Window.getFrameSize
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:43:24 -07:00
Stephen Gutekanst
96ee2a1dc6
glfw: add Window.getFramebufferSize
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:35:33 -07:00
Stephen Gutekanst
7cbe13941e
glfw: add Window.setSize
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 15:02:13 -07:00
Stephen Gutekanst
88aa5f4516
glfw: add Window.setAspectRatio
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:43:04 -07:00
Stephen Gutekanst
3894e707a5
glfw: add Window.setSizeLimits
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:29:14 -07:00
Stephen Gutekanst
cbd2cb7e78
glfw: add Window.getSize
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:18:34 -07:00
Stephen Gutekanst
403070ac2a
glfw: add Window.setPos
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:08:42 -07:00
Stephen Gutekanst
a690b84732
glfw: better handle Wayland limitations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:05:54 -07:00
Stephen Gutekanst
8ccae4cb1a
glfw: add Window.getPos
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 13:56:28 -07:00
Stephen Gutekanst
20c9110d9b
glfw: add Window.setIcon
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-20 21:28:00 -07:00
Stephen Gutekanst
4f1c6d1b58
glfw: add Image type
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-20 21:00:05 -07:00
Stephen Gutekanst
2b75b13123
glfw: add Window.setTitle
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-19 19:09:53 -07:00
Stephen Gutekanst
1f193ff018
glfw: inline Window wrapper functions
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 22:04:03 -07:00
Stephen Gutekanst
458f93095e
glfw: add Window.setShouldClose
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 22:01:18 -07:00
Stephen Gutekanst
a9446f4ed6
glfw: add Window.shouldClose
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 21:57:46 -07:00
Stephen Gutekanst
badc8939b5
glfw: add Window.destroy
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 21:45:25 -07:00
Stephen Gutekanst
04a213b411
glfw: cleanup two tests
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 21:37:05 -07:00
Stephen Gutekanst
c2af312200
glfw: use Window.create in basic test
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 21:36:14 -07:00
Stephen Gutekanst
9359bdc273
glfw: add Window.create
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 21:35:52 -07:00
Stephen Gutekanst
1e37864cb8
glfw: add Window.hintString
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 20:33:04 -07:00
Stephen Gutekanst
f136ad0031
glfw: add Window.hint
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 20:01:16 -07:00
Stephen Gutekanst
441d8d7928
glfw: add Window.defaultHints
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 17:47:07 -07:00
Stephen Gutekanst
477d8f85d8
CI: disable windows/linux testing for now
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 16:50:24 -07:00
Stephen Gutekanst
b5d1ebd1cd
glfw: window open test is optional (cannot open windows on CI)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 15:38:53 -07:00
Stephen Gutekanst
3627edfbba
README: add supported platforms matrix
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 14:52:45 -07:00
Stephen Gutekanst
fcdaba5cc2
README: explain zero fuss installation & cross compilation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 14:52:11 -07:00
Stephen Gutekanst
0f9fb391aa
README: link machengine Twitter
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-18 13:50:53 -07:00
Stephen Gutekanst
4fa50d273b
glfw: add Monitor.setGammaRamp
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 21:57:02 -07:00
Stephen Gutekanst
349462cb77
glfw: add Monitor.getGammaRamp
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 21:37:53 -07:00
Stephen Gutekanst
27d3117024
glfw: move Monitor method for consistency
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 21:30:52 -07:00
Stephen Gutekanst
ceabcec7a3
glfw: add GammaRamp type
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-17 21:29:51 -07:00
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