Stephen Gutekanst
917b0eb8be
model3d: disable UBSan alignment sanitization on m3d_load
...
Works around: https://gitlab.com/bztsrc/model3d/-/issues/19
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-14 16:52:36 -07:00
dasimmet
caafb26fe4
mach: add option to set the monitor index on fullscreen ( #611 )
...
* add option to set the monitor index on fullscreen
* make monitor index optional
Co-authored-by: Tobias Simetsreiter <tobias.simetsreiter@meliot.de>
2022-11-14 15:46:42 -07:00
Keith Chambers
731e2b1287
{mach,model3d}: link model3d as static lib instead of adding C files to build step ( #613 )
...
This allows the library to link better with projects. Otherwise you can end up with a mix of conflicts over that compiler + version to use.
Also adds .use_model3d option to mach build system. If set to true, model3d will be linked in statically to target project.
2022-11-14 15:43:53 -07:00
Cai Bingjun
005a99a323
gitattributes: update linguist-vendored C code marking ( #612 )
2022-11-13 17:40:36 -07:00
Stephen Gutekanst
d694b8031a
glfw: ensure Window.from handle is untyped
...
Since users of the library do not have access to the `@cImport` struct (and we
do not want to expose that), the user may pass only an untyped `*anyopaque` pointer
which we'll internally cast to `*c.GLFWwindow`.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 15:02:57 -07:00
Stephen Gutekanst
2d705a8c3e
earcut: fix inverted conditional in z-order index curve hashing
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 13:42:59 -07:00
Stephen Gutekanst
8b44cfe49b
earcut: fix integer overflow in z-order curve hash codepath
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 13:36:22 -07:00
Stephen Gutekanst
212c902747
mach: test ResourceManager
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 14:12:56 -07:00
Stephen Gutekanst
18bc25502b
mach: update mach-test dependencies
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:32:50 -07:00
Stephen Gutekanst
030cbf71a1
mach: resource: update function pointer declarations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:32:18 -07:00
Stephen Gutekanst
f59860cea5
earcut: fix potential integer underflow
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-05 13:30:39 -07:00
Ali Chraghi
a2c6319bc4
freetype: set packed structs backing integer
2022-11-01 08:59:13 -07:00
Stephen Gutekanst
8638ec246e
earcut: switch from pointer linked-list to index linked-list
...
* Means we can use a MultiArrayList as the backing array, which solves the lifetime
issue and enables reuse of the buffer for multiple polygon tesselations.
* Improves performance.
* Simplifies accesses, removes optionality except in necessary cases.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-31 12:12:01 -07:00
Stephen Gutekanst
6a45971c6f
trimesh2d: remove in favor of mach/earcut library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-31 12:12:01 -07:00
Stephen Gutekanst
96c2e35ab3
all: integrate earcut library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-31 12:12:01 -07:00
Stephen Gutekanst
09fa494359
earcut: new industrial-strength polygon triangulation library
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-31 12:12:01 -07:00
Ian Applegate
839d60c940
{shaderexp,gpu}: fix command buffer coercion ( #603 )
2022-10-31 08:17:50 -07:00
Ian Applegate
6563739d1a
mach: build: fix init error type. append can return OutOfMemory ( #604 )
2022-10-31 08:15:56 -07:00
Cameron Murtagh
88c5f54380
glfw: system_sdk: bump max major linux version ( #602 )
2022-10-29 10:50:13 -07:00
Release automation
864b376d97
gpu-dawn: update to latest binary release
2022-10-28 17:59:03 +00:00
BratishkaErik
aafb26189f
all: README: fix links to main repository ( #600 )
2022-10-28 10:22:23 -07:00
Stephen Gutekanst
ac22ca4d97
gpu-dawn: fix build instructions
...
`-Ddawn-from-source=true` was removed as an option when building gpu-dawn
in specific, since after all the project exists only to build Dawn from source.
Other projects (like `mach/gpu`, the WebGPU Zig bindings) of course still continue
to respect `-Ddawn-from-source=true`.
Originally reported as an issue [in Matrix](https://matrix.to/#/!bIJeTLtOHucXQpqIcH:matrix.org/$IiqVW7rz75Du15sNGFGQiDWGqC-MboJUBv8w0XWb828?via=matrix.org&via=mozilla.org&via=pythons.space ).
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-28 10:19:51 -07:00
Release automation
2d50c9b648
gpu-dawn: update to latest binary release
2022-10-28 00:51:45 +00:00
Ali Chraghi
5a851a2a28
system_sdk: better target check
2022-10-27 16:50:30 -07:00
Release automation
219f4de460
gpu-dawn: update to latest binary release
2022-10-22 17:00:22 +00:00
Stephen Gutekanst
628387764c
all: CI: update to latest Zig master version
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 09:11:16 -07:00
Stephen Gutekanst
db4743b2ed
dev: also update mach-examples zig version
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 09:11:16 -07:00
Release automation
934590e48a
gpu-dawn: update to latest binary release
2022-10-22 15:23:05 +00:00
Stephen Gutekanst
7beb89fac6
{dev,model3d}: ensure model3d has standard project files
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 07:45:50 -07:00
Stephen Gutekanst
fbdabee863
{dev,libs}: update linter for standard project files generation
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 07:44:31 -07:00
Ali Chraghi
33a6741535
ci: update examples repo if running on the main repo
2022-10-21 07:43:34 -07:00
Ali Chraghi
a27121c00a
mach: implement setCursorMode for wasm
2022-10-21 07:43:34 -07:00
Ali Chraghi
3ea1dea4f7
model3d: add m3d implementation / bindings ( #589 )
2022-10-21 07:42:01 -07:00
Mikkel Gravgaard
2d9b1ffba4
doc: add FAQ details about how to install Vulkan on Linux ( #591 )
...
* Add details about Vulkan support in Linux
* doc: add note about how to use OpenGL backend
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-10-21 07:38:09 -07:00
Release automation
4ff4da0790
gpu-dawn: update to latest binary release
2022-10-21 00:07:09 +00:00
Ali Chraghi
06ff56b36e
gpu-dawn: strip debug info for release builds
2022-10-20 16:05:42 -07:00
Stephen Gutekanst
af357c0a8a
mach: expose trimesh2d package
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-19 07:30:11 -07:00
Stephen Gutekanst
43e1dcbb50
trimesh2d: clip ears with smallest triangle area first
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
ae699565bb
trimesh2d: fix correctness issues, algo correctly implemented
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
6ee405e7c7
dev: add trimesh2d to linter
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Stephen Gutekanst
9df6448109
trimesh2d: add library for simple polygon triangulation in linear time
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 13:42:38 -07:00
Release automation
d7d0aa116c
gpu-dawn: update to latest binary release
2022-10-18 19:33:45 +00:00
Stephen Gutekanst
df60ed1b66
gpu: remove unused file
...
ref. hexops/mach#580
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 10:21:03 -07:00
Stephen Gutekanst
802b7cd6b0
gpu-dawn: do not build webgpu.h Dawn symbols in by default
...
Helps hexops/mach#580
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 09:40:25 -07:00
Release automation
1abf5d6c45
gpu-dawn: update to latest binary release
2022-10-17 13:50:58 +00:00
Stephen Gutekanst
d9efca0317
gpu-dawn: do not build webgpu.h symbols in by default
...
Helps hexops/mach#580
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:57:34 -07:00
Stephen Gutekanst
e4d15208a5
glfw: expose error handling functions for rare usages
...
Fixes hexops/mach#586
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:10:52 -07:00
Stephen Gutekanst
faab08e7f6
CI: correct automatic mach-examples updates
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 04:26:49 -07:00
Stephen Gutekanst
06b93b9556
CI: correct automatic mach-examples updates
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 04:26:02 -07:00
Stephen Gutekanst
3d0a21c274
CI: correct automatic mach-examples updates
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 03:30:10 -07:00