Commit graph

2592 commits

Author SHA1 Message Date
Stephen Gutekanst
f094a85a1e examples/gkurve: fix compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 20:18:02 -07:00
Stephen Gutekanst
eb5149a7bb examples/gkurve: improve compatibility with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 19:21:27 -07:00
Stephen Gutekanst
a4792f6e5a freetype: examples: add help/usage output to single-glyph if arg not specified
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 19:04:54 -07:00
Stephen Gutekanst
8019d55fe5 freetype: improve self-hosted compiler support (use darwin @cImport workaround)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 19:03:55 -07:00
Stephen Gutekanst
45896bd6f5 sysaudio: improve self-hosted compiler support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 18:53:54 -07:00
Stephen Gutekanst
f756af8bcd sysaudio: improve self-hosted compiler support (use darwin @cImport workaround)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 18:53:02 -07:00
Stephen Gutekanst
fd8153b231 examples: zigimg: switch to MasterQ32 stage2 patches
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 17:59:02 -07:00
Stephen Gutekanst
e193be5bfe CI: correct git-filter-repo installation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 16:00:50 -07:00
Stephen Gutekanst
d0961f2898 CI: correct git-filter-repo installation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:58:11 -07:00
Stephen Gutekanst
e2f10dadc8 CI: install git-filter-repo dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:44:07 -07:00
Stephen Gutekanst
3011ed0ea4 all: update pull request template to reflect new libs/ dir
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
bf096e2a0c dev: update ensure-standard-files for new libs/ directory
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
6e881b21a6 mach: reference new libs/ subproject path
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
0645429df9 all: move standalone libraries to libs/ subdirectory
The root dir of our repository has grown quite a lot the past few months.

I'd like to make it more clear where the bulk of the engine lives (`src/`) and
also make it more clear which Mach libraries are consumable as standalone projects.

As for the name of this directory, `libs` was my first choice but there's a bit of
a convention of that being external libraries in Zig projects _today_, while these
are libraries maintained as part of Mach in this repository - not external ones.

We will name this directory `libs`, and if we have a need for external libraries
we will use `external` or `deps` for that directory name. I considered other names
such as `components`, `systems`, `modules` (which are bad as they overlap with
major ECS / engine concepts), and it seems likely the official Zig package manager
will break the convention of using a `libs` dir anyway.

Performed via:

```sh
mkdir libs/
git mv freetype libs/
git mv basisu libs/
git mv gamemode libs/
git mv glfw libs/
git mv gpu libs/
git mv gpu-dawn libs/
git mv sysaudio libs/
git mv sysjs libs/
git mv ecs libs/
```

git-subtree-dir: glfw
git-subtree-mainline: 0d5b853443
git-subtree-split: 572d1144f11b353abdb64fff828b25a4f0fbb7ca

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>

git mv ecs libs/

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
79ec61396f dev: update scripts to push subrepos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
b6a512ebac dev: update subproject paths to have libs/ prefix
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Ali Chraghi
f6f1187526 freetype: complete *Quick retrieval of advance value* binding 2022-08-25 09:57:19 -07:00
Ali Chraghi
b471a9cc98 freetype: fix flags integer size 2022-08-25 09:57:19 -07:00
Ali Chraghi
e13921c355 freetype: complete outline processing binding 2022-08-25 09:57:19 -07:00
Ali Chraghi
241892ad86 freetype: import structs from namespace
this is *Not a Breaking* change
2022-08-25 09:57:19 -07:00
Ali Chraghi
4a0802639c
basisu: add bindings for basis-universal (supercompressed textures) (#477) 2022-08-25 03:56:06 -07:00
Stephen Gutekanst
88558b7d52
README: document supported Zig version caveats more clearly 2022-08-24 11:16:26 -07:00
Stephen Gutekanst
0d5b853443 all: ensure .git* files are standard across subprojects
Produced via:

```sh
zig run ./dev/ensure-standard-files.zig
```

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:36:51 -07:00
Stephen Gutekanst
60220cbe4f dev: ensure .git* files are standardized across subprojects
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:36:22 -07:00
Stephen Gutekanst
e43695f8ff all: ensure LICENSE files are byte-for-byte consistent
Produced via:

```sh
zig run ./dev/ensure-standard-files.zig
```

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:17:21 -07:00
Stephen Gutekanst
1c4f4e4c90 ev: add script ensuring standard files across subprojects
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:16:17 -07:00
Stephen Gutekanst
f0d483507b dev/template: make LICENSE year consistent
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:13:54 -07:00
Stephen Gutekanst
c712016ac2 basisu: initialise basisu (supercompressed textures) sub-project
Copied `dev/template` and renamed `foobar` -> `basisu`

Helps hexops/mach#474

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-22 21:06:28 -07:00
Stephen Gutekanst
19fa5cee8c dev/template: add template for creating new sub-projects
Fixes hexops/mach#473

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-22 20:49:44 -07:00
Stephen Gutekanst
da9b08940a sysaudio: gitignore generated config.h
Fixes hexops/mach#469

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-22 20:17:39 -07:00
LordMZTE
a001d53576 examples: fix old example assets directory paths
This commit fixes a bug where the build script would look for
an assets directory that has been moved.
2022-08-22 19:52:46 -07:00
praschke
d9f10d25d0 shaderexp: use one triangle for fullscreen 2022-08-22 19:52:05 -07:00
praschke
c57f0575ea shaderexp: push vertex data into shader 2022-08-22 19:52:05 -07:00
Stephen Gutekanst
4199d2a001 all: clarify self-hosted compiler TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 23:37:48 -07:00
Stephen Gutekanst
f56606a3c3 gpu: workaround issue in self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 23:28:28 -07:00
Stephen Gutekanst
c4421840cb examples: improve compatibility with self-hosted compiler; zigimg updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 22:58:18 -07:00
Stephen Gutekanst
bc5e2fe9bf examples: workaround change in @embedFile not working with relative paths
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 22:48:19 -07:00
Stephen Gutekanst
37c3045314 examples: update zigimg usage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 22:43:04 -07:00
Stephen Gutekanst
dc00067ec1 examples: update zigimg for self-hosted compatibility
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 22:40:21 -07:00
Stephen Gutekanst
a4ddfb6bda examples: make map-async compatible with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 13:17:52 -07:00
Stephen Gutekanst
1cc15e92a0 mach: add objc_message.zig dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:03:17 -07:00
Stephen Gutekanst
a707894113 glfw: pretranslate @cImport to workaround self-hosted compiler bug
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:03:17 -07:00
Stephen Gutekanst
51932241c1 gpu: pretranslate @cImport to workaround self-hosted compiler bug
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:03:17 -07:00
Stephen Gutekanst
80e127b5ae gpu: eliminate objc/message.h @cImport
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:03:17 -07:00
Stephen Gutekanst
0e14764ab2 examples: make advanced-gen-texture-light compatible with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:02:58 -07:00
Stephen Gutekanst
192de6946e mach: improve compatibility with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:02:01 -07:00
Stephen Gutekanst
1c43f0f1e8 sysjs: improve compatibility with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 11:41:28 -07:00
Stephen Gutekanst
7bc7caaec4 sysaudio: improve compatibility with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 11:41:15 -07:00
Stephen Gutekanst
72b081c97a mach: improve compatibility with self-hosted compiler
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 11:41:01 -07:00
Stephen Gutekanst
e92572b776 gpu: examples: remove unused import
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 11:01:30 -07:00