Commit graph

3296 commits

Author SHA1 Message Date
Stephen Gutekanst
5bea00d997
github: update zig nomination template 2024-01-13 01:27:36 -07:00
Stephen Gutekanst
3b180a58d5
github: update zig nomination second-order projects 2024-01-11 00:14:41 -07:00
Stephen Gutekanst
d9ad90b8af
github: update zig nomination template 2024-01-10 23:13:09 -07:00
Stephen Gutekanst
6a76564ae7
github: add release checklist template 2024-01-07 23:21:09 -07:00
Stephen Gutekanst
cf933ff8a2
github: update zig nomination template (machine-readable index.json) 2024-01-07 23:19:34 -07:00
Stephen Gutekanst
b4b867c5fb
github: update zig nomination template (ensure wrench == latest nightly) 2024-01-07 14:13:14 -07:00
Stephen Gutekanst
b105a35a12
github: update zig nomination template (add spirv-tools, spirv-cross) 2024-01-07 13:43:48 -07:00
Stephen Gutekanst
d5876af31b
github: update zig nomination template
These TODOs are now captured by other filed issues: #1139, #1136
2024-01-07 13:38:25 -07:00
Stephen Gutekanst
a5ffbd0d80
github: update zig nomination template 2024-01-07 13:04:33 -07:00
Stephen Gutekanst
36806029e4
github: add feedback issue template 2024-01-07 01:14:47 -07:00
Stephen Gutekanst
5417797fe6
github: update bug report template 2024-01-07 01:11:38 -07:00
Stephen Gutekanst
2eddc331ee
github: add bug report issue template 2024-01-07 01:09:19 -07:00
Stephen Gutekanst
fb78346cfb
github: update zig version update template 2024-01-07 00:05:46 -07:00
Stephen Gutekanst
84557746e0
github: update zig version update template 2024-01-06 23:23:55 -07:00
Stephen Gutekanst
da1c55d689
github: add Zig version update issue template 2024-01-06 23:16:13 -07:00
Stephen Gutekanst
fc24a1148a gfx: use Mat4x4.projection2D once again
Helps hexops/mach#1103

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-06 13:11:23 -07:00
Stephen Gutekanst
0d938ef6be math: add inf, isInf
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-06 13:11:23 -07:00
Stephen Gutekanst
aa2435e10e math: add well-tested, reverse-z 2D projection matrix
Helps hexops/mach#1103

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-06 13:11:23 -07:00
Stephen Gutekanst
fb69b0cda7 testing: improve printing on testing.expect inequality
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-06 13:11:23 -07:00
Joel
59bb156bf9
math: Add vector comparison functions (#1131) 2024-01-06 12:37:58 -07:00
Ali Chraghi
e9489ee560
math: add Mat2x2 (#1130) 2023-12-30 15:57:43 -07:00
btipling
9cf37cdc39
Early return with null for a ray with no direction (#1132) 2023-12-30 15:48:39 -07:00
Stephen Gutekanst
260802f777 all: update ECS Mod(.module_tag) -> Mod(ModuleType)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-12-16 22:56:46 -07:00
Stephen Gutekanst
8ff30c931f all: update to global vs. local ECS change
See hexops/mach-ecs@ef06fb6473

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-12-16 19:41:34 -07:00
Caleb Katzenstein
11aed4d16f
math: Add vec3.mulQuat() (#1067)
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2023-12-16 13:28:47 -07:00
Stephen Gutekanst
9250310c4a math: remove invalid test
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-11-10 14:30:40 -07:00
Stephen Gutekanst
c87ea394db math: remove incorrect perspective/ortho projection implementations
See https://github.com/hexops/mach/issues/1103

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-11-10 14:29:51 -07:00
Stephen Gutekanst
d48690fdca update deps (fix -> macOS cross compilation)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-25 00:08:04 -07:00
Joel D. Schüller
3e025ef7b1 math: Make Mat3x3's underlying type Vec3 2023-10-24 23:32:55 -07:00
Stephen Gutekanst
ec53b24309 update deps
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-24 23:27:22 -07:00
Stephen Gutekanst
b19fe6dc00 add .zigversion file for programmatic access
This file can be queried at e.g. https://raw.githubusercontent.com/hexops/mach/main/.zigversion

After we update the Zig version in all our repositories and we generally
feel good about it, then this file and https://machengine.org/about/zig-version
will be updated to the new version we support.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-20 16:43:55 -07:00
Wrench[bot]
553afa71ff all: update Zig to version 0.12.0-dev.1092+68ed78775
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-10-18 10:16:26 -07:00
Stephen Gutekanst
098d5ee73f update to latest Zig
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-16 23:47:13 -07:00
Wrench[bot]
ba160b2b95 all: update Zig to version 0.12.0-dev.978+78855bd21
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-10-16 23:05:06 -07:00
Om Prakaash
c1abc7a06f
math: add fromInt constructor helper for vectors (#1061) 2023-10-16 19:35:45 -07:00
Joel
fde4f820d7
math: Add Matrix multiplication tests (#1066)
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-16 19:32:20 -07:00
Dustin Taylor
6d825284f7
engine: release encoder properly (#1068) 2023-10-16 19:27:39 -07:00
Stephen Gutekanst
c03673ff05 math: zig fmt
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-13 19:27:29 -07:00
Stephen Gutekanst
e1ce5c5662 gfx: individual styles for text segments
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-13 19:27:29 -07:00
Joel D. Schüller
fc4c3d06a3 math: Improve triangleIntersect doc comment 2023-10-10 20:31:47 -07:00
Joel D. Schüller
efe9d3d5d2 math: Add more precise triangleIntersect tests 2023-10-10 20:31:47 -07:00
Joel D. Schüller
8ddb9ade70 math: Fix Ray and Ray.Hit type adaptations 2023-10-10 20:31:47 -07:00
Joel D. Schüller
1c32ae83a7 math: Move maxDim function inside Ray struct 2023-10-10 20:31:47 -07:00
Joel D. Schüller
e7c95b8ce9 math: Replace floatFallbackPrecision function with switch expression 2023-10-10 20:31:47 -07:00
Om Prakaash
7bd2bc8d24 Add mulVec function for vectors.
Add function to allow a matrix to be left multiplied by a vector.
2023-10-06 20:18:17 -07:00
Stephen Gutekanst
1c16060eaa update dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:40 -07:00
Stephen Gutekanst
1f8962408c gfx: integrate new font stack into Text module
Helps hexops/mach#877

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:36 -07:00
Stephen Gutekanst
34259ed1b8 gfx: font: account for glyph bearings
Helps hexops/mach#877

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:33 -07:00
Stephen Gutekanst
dfbf3e3603 gfx: font: add glyph rendering functionality
Helps hexops/mach#877

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:30 -07:00
Stephen Gutekanst
87c3de78f5 gfx: font: begin adding text shaping via harfbuzz
Helps hexops/mach#877

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:13 -07:00