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
ad5700cf48
core: Remove main_window in favor of users creating their own windows. Added event window_open which is called when the platform has finished initializing the window
2024-12-01 18:32:15 -07:00
Stephen Gutekanst
b844fa7d1c
examples: play-opus: make audio low-latency more obvious
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-12-01 13:55:30 -07:00
Stephen Gutekanst
314abeb988
audio: update Audio module to new object system
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-12-01 13:55:30 -07:00
Stephen Gutekanst
281884e9b0
examples: core-triangle: cleanup width/height input handler
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-12-01 13:55:30 -07:00
foxnne
06aec428de
core: windows: Get triangle showing, still freezing on run. Comment out more windows, set value of window back on presentFrame.
2024-12-01 12:19:50 -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
319f2d8fb8
triangle: Remove input keys to change window size, this was just a test
2024-11-27 18:30:53 -07:00
foxnne
f58cb270b1
obj: Fix doc comment and update example to build
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
Stephen Gutekanst
714f200bc1
module: implement cross-Object-pool graph relations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Stephen Gutekanst
9d134dc72d
module: object recycling
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Stephen Gutekanst
8054d03b4d
unify mach.Call and mach.Runner into one type
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Stephen Gutekanst
14ccd5a93c
settle module state initialization
...
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
Stephen Gutekanst
2a13c07d9e
module: remove the ability to send "standard" arguments to systems
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-11-23 21:20:04 -07:00
Ronald M Zielaznicki
910e8f6e82
build: examples run independently & sysaudio examples renamed as tests
2024-10-29 21:55:40 -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
09d39fb694
core: simplify event iterator
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:51:16 -07:00
Stephen Gutekanst
8b8489b3e2
examples: custom-entrypoint: demonstrate freeing stack space
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 16:40:58 -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
Hordur Johannsson
13e53e7176
Fixing core to work with win32 #1257
2024-08-25 09:59:08 -07:00
Stephen Gutekanst
642cc9b7f7
make it clear how to use module system without mach.Core (remove mach.App)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 22:33:15 -07:00
Stephen Gutekanst
80be6b7bca
examples: revert to 0.4 entrypoint / control API design
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 22:33:15 -07:00
Stephen Gutekanst
bfa3b069f7
revert bad entrypoint API design changes
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-23 23:03:54 -07:00
Hordur Johannsson
42d2a57611
Changing resource category for textures in d3d12 issue #1225 ( #1226 )
2024-08-07 21:58:59 -07:00
Ali Cheraghi
0023ab14fb
{vulkan,examples}: fix descriptor set bug
2024-07-13 09:06:35 -07:00
Ali Cheraghi
266e7a548b
core: refactor
2024-07-13 09:06:35 -07:00
Stephen Gutekanst
98801a258e
remove Dawn / WebGPU support in favor of sysgpu
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-07-07 22:08:16 -07:00
Stephen Gutekanst
4ac8de4692
examples: move core examples into core/ folder; add triangle example
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 10:15:01 -07:00
Stephen Gutekanst
205a1f33db
Core: support configuring window before it opens
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-14 00:12:26 +02:00
Stephen Gutekanst
122a1ea9a7
{gfx,examples}: simplify text rendering API a bit
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-14 00:12:26 +02:00
Stephen Gutekanst
92086d8d66
examples: add hardware-check
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-12 16:27:52 +02:00
Stephen Gutekanst
3c778816d9
examples: improve play-opus code quality a bit
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-12 16:23:38 +02:00
Stephen Gutekanst
0200bed7ec
examples: simplify dependencies, mach depends on Opus
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-11 14:35:54 -07:00
Stephen Gutekanst
22ac26b57e
module: rename events -> systems, remove 'event arguments'
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-08 13:39:07 -07:00
Stephen Gutekanst
89ad7fce24
examples: sprite: fix release() bugs caught by sysgpu
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
5ec9f89821
examples: text: correctly release frame_render_pass
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
786d0d50b1
examples: glyphs: slightly improve release() logic
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
d8e0787c7e
examples: play-opus: release render_pass properly
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
3d4888f430
examples: glyphs: fix double-free of texture
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
6feaad630e
{examples,Audio}: optimize needless setComponent calls away
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
bd655828e3
all: use new mach.Entity.Mod query API
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
541ce9e7c0
all: rename mach.Entity.Mod -> mach.Entities.Mod
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
65e2168b9f
module: injected mach.Entity.Mod for global entity operations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
cb6bdd7eca
examples: play-opus: change sfx noise
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
69ff2e027f
all: rename mod.entities -> mod.__entities (private)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00
Stephen Gutekanst
2e8926d6fa
module: rename query -> queryDeprecated
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-07 23:40:56 -07:00