Commit graph

274 commits

Author SHA1 Message Date
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
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
8a61c70409 build: fix Zig version error
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
Ronald M Zielaznicki
51e6899505 build: add libdecor 2024-10-29 22:18:40 -07:00
Ronald M Zielaznicki
f255876823 change(build): use instead of 2024-10-29 22:18:40 -07:00
Ronald M Zielaznicki
910e8f6e82 build: examples run independently & sysaudio examples renamed as tests 2024-10-29 21:55:40 -07:00
Wrench[bot]
2d13c5efc5 all: update Zig to version 0.14.0-dev.1911+3bf89f55c
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2024-10-16 10:21:48 -07:00
Stephen Gutekanst
c8b0d77502 build: major cleanup
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 23:09:01 -07:00
Stephen Gutekanst
b94462a918 build: linux: fix building tests & cleanup build.zig logic
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 22:49:09 -07:00
Stephen Gutekanst
12e69752d3 build: fix "error: the linker needs one or more objects to link"
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 22:14:56 -07:00
Stephen Gutekanst
26b385eb8e update to latest xcode-frameworks API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-10-08 11:42:23 -07:00
Wrench[bot]
55e6abda61 all: update Zig to version 0.14.0-dev.1710+8ee52f99c
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2024-10-08 11:42:23 -07:00
Joshua Holmes
f7e5ca8320 core: add x11 headers 2024-09-17 10:59:30 -07:00
Joshua Holmes
36280a0980 core: fix linking issues 2024-09-17 10:59:30 -07:00
Joshua Holmes
88d14b5c04 core: get wayland to compile 2024-09-17 10:59:30 -07:00
Stephen Gutekanst
cd85a2d623 core: basic Linux structure
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 19:00:22 -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
c2767b4e01 core: fix build with Null backend
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-25 11:52:36 -07:00
Hordur Johannsson
4c8fbb2bf0
Add docs build step. (#1261) 2024-08-25 11:36:06 -07:00
Stephen Gutekanst
17450fde65 core: remove linux support
The `mach.Core` API needs major design changes, and every backend that it supports
today must be updated to account for those API design changes. Unless someone is
actively maintaining and improving the state of a given backend, it slows down our
ability to make those critical changes.

Unfortunately, the backends for X11 and Wayland today are half-baked, nobody is
actively maintaining on or contributing to them, and the Linux CI tests have been
broken for over a month as a result which harms overall stability of Mach.

As a result, this PR removes Linux support from `mach.Core`

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 23:42:37 -07:00
Stephen Gutekanst
51e996db72 remove unmaintained WASM support
Same reasoning as outlined in #1254

> nobody is interested in actively maintaining or contributing to that today.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 23:22:52 -07:00
Stephen Gutekanst
a5a3d31411 core: remove WASM support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-08-24 22:33:15 -07:00
Stephen Gutekanst
66e56f037b
initial macOS backend (#1249)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Michael Bradshaw <github@mjb.io>
2024-08-18 16:45:37 -07:00
Stephen Gutekanst
6e2f937026 core: add Null backend to show what implementing a backend looks like
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-07-13 15:48:07 -07:00
Hordur Johannsson
c32e763e11
add new win32 platform implementation (#1224)
* Buffer resources from swap chain were not being released.
* sysgpu Texture.getWidth() should return width not height.
* d3d12: Fixing issues with d3d12 on sysgpu.
* Initial win32 platform
2024-07-13 15:33:45 -07:00
Ali Cheraghi
c254337e4b {core, build}: remove glfw 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
b72f0e11b6 build: update Zig version check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 19:00:43 -07:00
Stephen Gutekanst
707e5cc756 update to Zig 2024.05
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 18:57:45 -07:00
Wrench[bot]
c64bc513b9 all: update Zig to version 0.13.0-dev.351+64ef45eb0
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2024-06-02 18:57:45 -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
b09b462ef1 src/sysjs: move sysjs@v0 to here
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 09:34:39 -07:00
Stephen Gutekanst
ffd03c3b0b remove examples that require model3d
See hexops/mach#969

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 09:01:09 -07:00
Stephen Gutekanst
18e32ee6bf build: use ReleaseFast for opus decoding
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-18 17:06:20 +02:00
Stephen Gutekanst
393320aa68 build: do not force install/build of core- examples
CoreApp users can call b.installArtifact(app.compile) themselves if
they desire that behavior

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
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
9a96820926 build: simplify link() usage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-06 14:00:55 -07:00
Stephen Gutekanst
2c77c16356 build: correct .mach only build option (i.e. do not build examples/libs)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-06 14:00:54 -07:00
Ali Chraghi
5bd6d0cf3d add play-opus example 2024-05-05 21:10:07 +03:30
Stephen Gutekanst
487beaabde examples: rename sysaudio example -> piano
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 16:38:15 -07:00
Stephen Gutekanst
38fb23e22a build: fix core example imports
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
c26d9a40d1 build: use lazy dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
51f5721f8b build: remove currently-unused basisu dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
e8b95d5076 build: cleanup sysjs dependency utilization
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
a681a10170 build: use lazyDependency to only download required dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
2889468c6b build: remove App (not CoreApp)
This removes the old `App` builder, leaving only `CoreApp` as something
to resolve/remove.

Helps hexops/mach#1186

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
6a2358baf8 build: fix WASM builds
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-19 19:34:40 -07:00
Stephen Gutekanst
78edb10446 build: fix duplicate symbol machDawnGetProcTable
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-19 18:46:04 -07:00