Stephen Gutekanst
|
fbf3855adc
|
glfw: add Window.setTitle
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-19 19:09:53 -07:00 |
|
Stephen Gutekanst
|
2b04907c43
|
glfw: inline Window wrapper functions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 22:04:03 -07:00 |
|
Stephen Gutekanst
|
a7447e64b6
|
glfw: add Window.setShouldClose
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 22:01:18 -07:00 |
|
Stephen Gutekanst
|
820edbd3fb
|
glfw: add Window.shouldClose
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 21:57:46 -07:00 |
|
Stephen Gutekanst
|
73f75fdaf3
|
glfw: add Window.destroy
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 21:45:25 -07:00 |
|
Stephen Gutekanst
|
c8984e28f9
|
glfw: cleanup two tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 21:37:05 -07:00 |
|
Stephen Gutekanst
|
938c097d8a
|
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
|
ea031d34cf
|
glfw: add Window.create
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 21:35:52 -07:00 |
|
Stephen Gutekanst
|
4564dea072
|
glfw: add Window.hintString
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 20:33:04 -07:00 |
|
Stephen Gutekanst
|
f4c285f1e8
|
glfw: add Window.hint
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 20:01:16 -07:00 |
|
Stephen Gutekanst
|
bb0d99a087
|
glfw: add Window.defaultHints
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-18 17:47:07 -07:00 |
|
Stephen Gutekanst
|
bdc4317fc4
|
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
|
5162aa0bb1
|
glfw: add Monitor.setGammaRamp
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 21:57:02 -07:00 |
|
Stephen Gutekanst
|
000572134f
|
glfw: add Monitor.getGammaRamp
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 21:37:53 -07:00 |
|
Stephen Gutekanst
|
dd20db9c3f
|
glfw: move Monitor method for consistency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 21:30:52 -07:00 |
|
Stephen Gutekanst
|
541d626d0b
|
glfw: add GammaRamp type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 21:29:51 -07:00 |
|
Stephen Gutekanst
|
0e02d7dfdc
|
glfw: fix and test VideoMode getters
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:56:48 -07:00 |
|
Stephen Gutekanst
|
833c45b686
|
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
|
026dd2f3c0
|
glfw: cleanup VideoMode imports
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:49:23 -07:00 |
|
Stephen Gutekanst
|
bc28475a08
|
glfw: add Monitor.getVideoMode
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:43:37 -07:00 |
|
Stephen Gutekanst
|
54f9d9d3b1
|
glfw: correct import references
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:19:46 -07:00 |
|
Stephen Gutekanst
|
68b9ca80e4
|
glfw: fix and test Monitor.getVideoModes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:15:40 -07:00 |
|
Stephen Gutekanst
|
18e3d5487b
|
glfw: deduplicate @cImport for type equivalence
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 20:14:09 -07:00 |
|
Stephen Gutekanst
|
20c4b06568
|
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
|
bf6099e252
|
glfw: inline getError helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:24:46 -07:00 |
|
Stephen Gutekanst
|
6015ad37e4
|
glfw: clarify Monitor.setCallback docs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:23:01 -07:00 |
|
Stephen Gutekanst
|
d838eabe93
|
glfw: fix Monitor.getUserPointer alignment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 17:18:12 -07:00 |
|
Stephen Gutekanst
|
6989fd49ce
|
glfw: add Monitor.setCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 15:31:31 -07:00 |
|
Stephen Gutekanst
|
09cfe7b080
|
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
|
d29baba18e
|
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
|
fd28f51936
|
glfw: inline Monitor functions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 14:00:57 -07:00 |
|
Stephen Gutekanst
|
119f896e35
|
glfw: always check init errors
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 13:59:26 -07:00 |
|
Stephen Gutekanst
|
631cfbfc66
|
glfw: add Monitor.setUserPointer, Monitor.getUserPointer
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
44fdfc641e
|
glfw: add Monitor.getName function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
e1a8f97385
|
glfw: add Monitor.getContentScale
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
fda6959724
|
glfw: add Monitor.getPhysicalSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-17 12:58:11 -07:00 |
|
Stephen Gutekanst
|
7606092329
|
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
|
e5da72afc2
|
glfw: add monitor.getWorkarea
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 17:07:48 -07:00 |
|
Stephen Gutekanst
|
0b6f209cbb
|
glfw: add Monitor.getPos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:57:50 -07:00 |
|
Stephen Gutekanst
|
3844558b0f
|
glfw: correctly test Monitor implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:56:58 -07:00 |
|
Stephen Gutekanst
|
070649e0dc
|
glfw: add monitors.getPrimary
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:42:03 -07:00 |
|
Stephen Gutekanst
|
f382d1ab2b
|
glfw: add monitor.getAll support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:36:57 -07:00 |
|
Stephen Gutekanst
|
5e9b7d57d2
|
glfw: make init inline
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:35:42 -07:00 |
|
Stephen Gutekanst
|
8e785d3443
|
glfw: add getVersionString
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 16:00:28 -07:00 |
|
Stephen Gutekanst
|
2cb8704851
|
glfw: add initHint function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 15:50:35 -07:00 |
|
Stephen Gutekanst
|
84ef0a591e
|
glfw: add terminate function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 15:24:45 -07:00 |
|
Stephen Gutekanst
|
a19f73f1e4
|
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
|
041d328721
|
glfw: add init function
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 15:07:06 -07:00 |
|
Stephen Gutekanst
|
bf4f718357
|
glfw: add error handling
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 15:06:35 -07:00 |
|
Stephen Gutekanst
|
f384e88dc1
|
glfw: add C -> Zig error translation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2021-07-16 14:27:34 -07:00 |
|