Commit graph

29 commits

Author SHA1 Message Date
foxnne
ff11fd6d4c core: darwin: Add ability to detect and fire magnify event which is triggered by pinch to zoom on a trackpad 2024-12-24 15:40:16 -07:00
foxnne
98c303aefc core: darwin: More input callbacks, correct framebuffer/window sizes, core has responsibility of swapchain 2024-12-24 15:40:16 -07:00
foxnne
059a271b3b darwin: windowWillResize_toSize -> windowDidResize, fixes a bug where window size didn't include titlebar height. Depends on https://github.com/hexops/mach-objc/pull/30 2024-12-08 10:22:42 -07:00
foxnne
0a78c4cc08 darwin: first pass at trying to enable vsync 2024-12-08 10:22:42 -07:00
foxnne
6ef58d8c1f example: core-transparent-window now animates the window color and transparency 2024-12-08 10:22:42 -07:00
foxnne
19040cae25 darwin: temporarily set window background to be transparent. examples: Add core-transparent-window and remove input from core-triangle 2024-12-08 10:22:42 -07:00
foxnne
f8a2858df8 darwin: Get window title working 2024-12-08 10:22:42 -07:00
Stephen Gutekanst
3b45eda8df core: darwin: fix inverted width/height
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-12-01 13:55:30 -07:00
Stephen Gutekanst
3bb7833e38 core: darwin: fix use-after-free
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-12-01 13:55:30 -07:00
Colton Franklin
1fe47b2b19
obj: Move Platform and InitOptions fields into core.windows (#1309)
* obj: Make field tracking use a single bitset

* obj: module: fix comment

* obj: Move `Platform` state and `InitOptions` fields into `core.windows`, initial push, only triangle example working on macos currently

* obj: `get` and `getValue` (renamed `getAll`) now do not return optionals, comment revisions, `device` is no longer optional, `native` is optional

* core: Lots of cleanup of unnecessary comments

* core: `Event`s now all contain `window_id`, darwin/windows: event functions now send window id

* core: comments, examples: fix `core-custom-entrypoint`
2024-11-30 15:13:14 -07:00
foxnne
314b761b71 darwin: Set main window width and height on event 2024-11-27 18:30:53 -07:00
foxnne
0546c3d5ca obj: Refine comments, make updated set bits back to false, swap Objects parameters 2024-11-27 18:30:53 -07:00
foxnne
0476999dc4 core: Allow tracking of individual struct fields for changes 2024-11-27 18:30:53 -07:00
Colton Franklin
e4bc709ea2
darwin: Get keyboard input working (#1302) 2024-11-24 16:39:10 -07:00
Stephen Gutekanst
fc13b371bf core: various fixes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Stephen Gutekanst
0e12857154 examples/core: building without ECS
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Colton Franklin
fbf274ccbe
core: darwin: Implement update, setTitle and setSize, etc. (#1299) 2024-11-13 12:36:55 -07:00
Stephen Gutekanst
26c5cb5d60 update to Zig 2024.10-mach (helps hexops/mach#1276)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 11:42:23 -07:00
Stephen Gutekanst
8447654311 core: move input state tracking from Platform to Core
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 18:50:32 -07:00
Stephen Gutekanst
1c0434a948 core: remove verbose comments
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 18:21:21 -07:00
Stephen Gutekanst
09d39fb694 core: simplify event iterator
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:51:16 -07:00
Stephen Gutekanst
2eac60caf1 core: centralize EventQueue and EventIterator declaration
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:04:25 -07:00
Stephen Gutekanst
1fab277bf7 core: remove unimplemented joystick API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:57:18 -07:00
Stephen Gutekanst
470a84909b core: more code refactoring / improvements
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:45:43 -07:00
Stephen Gutekanst
de1275dc0a core: refactor code structure
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 15:38:13 -07:00
Stephen Gutekanst
133c89638b all: move mach.Timer, core Timer/Frequency to mach.time module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 14:24:09 -07:00
Michael Bradshaw
8ea49d1c80 Remove Objective-C dual namespacing 2024-08-23 20:43:38 -07:00
Michael Bradshaw
08f5b84227 Remove runtime Objective-C initialization and dependency on usingnamespace 2024-08-23 20:43:38 -07:00
Stephen Gutekanst
c04a6080b5 core: fix Darwin filepath case
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-19 22:41:58 -07:00
Renamed from src/core/darwin.zig (Browse further)