Stephen Gutekanst
|
f2f6df9f7b
|
all: fix the build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-04 17:04:30 -07:00 |
|
Stephen Gutekanst
|
5b25db1025
|
math: begin rewrite of mach.math
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-04 17:01:54 -07:00 |
|
Stephen Gutekanst
|
6b5a9990b9
|
testing: use "eql", not "equal(s)"
This is more consistent with the stdlib everywhere other than `std.testing`.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-04 15:43:58 -07:00 |
|
Stephen Gutekanst
|
2781d4afd4
|
add mach.testing
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-04 14:31:43 -07:00 |
|
Stephen Gutekanst
|
c505acf95c
|
testing: add mach.testing module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-04 14:31:21 -07:00 |
|
Stephen Gutekanst
|
35742d1591
|
editor: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-02 16:13:49 -07:00 |
|
Stephen Gutekanst
|
2b9ec3ba4c
|
gfx2d: alpha blending Sprite2D
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-02 09:52:47 -07:00 |
|
Stephen Gutekanst
|
67dbe9b3ee
|
update to latest mach-ecs (messages with parameters)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-02 09:52:19 -07:00 |
|
Stephen Gutekanst
|
9b142c7621
|
gfx2d: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-09-01 17:12:40 -05:00 |
|
Stephen Gutekanst
|
fd5d347f3e
|
rename mach.Module -> mach.Engine; parameter injection
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-28 11:05:01 -07:00 |
|
Stephen Gutekanst
|
8cea2c9f7d
|
fix machExit bug
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-22 18:26:13 -07:00 |
|
Stephen Gutekanst
|
29475c2e57
|
gfx2d: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-22 08:57:02 -07:00 |
|
Stephen Gutekanst
|
945f69428a
|
gfx2d: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-22 08:54:42 -07:00 |
|
Stephen Gutekanst
|
d01834a919
|
update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-21 22:12:02 -07:00 |
|
Stephen Gutekanst
|
ad17aa940b
|
change adapter anytype -> *mach.Engine
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-20 16:17:40 -07:00 |
|
Stephen Gutekanst
|
2ab8b6543a
|
gfx2d: update to latest mach-ecs API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-19 19:41:19 -07:00 |
|
Stephen Gutekanst
|
737de0ca73
|
gfx2d: remove dynamic offsets from Sprite2D buffers
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-17 08:40:28 -07:00 |
|
Stephen Gutekanst
|
6583be417e
|
math: correct alignment/size of Mat4x4 and Mat3x3
For GPU compatibility (see test at end of file)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-17 08:38:08 -07:00 |
|
Stephen Gutekanst
|
8c24e0a75f
|
math: test GPU size/alignment compatibility
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-16 21:43:29 -07:00 |
|
Stephen Gutekanst
|
f393560518
|
math: fix link to website
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-13 13:38:56 -07:00 |
|
Stephen Gutekanst
|
794826f34a
|
gfx2d: update to latest mach-gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-13 09:39:00 -07:00 |
|
Stephen Gutekanst
|
7f914d5354
|
update to latest mach-core
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-13 09:33:07 -07:00 |
|
Ali Chraghi
|
7c0b796315
|
engine: init device
|
2023-08-04 18:28:10 -07:00 |
|
Stephen Gutekanst
|
31838fe4ed
|
gfx2d: update to latest mach-core API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-08-03 22:36:52 -07:00 |
|
Ali Chraghi
|
c26cfec0b6
|
update to latest mach-core API
|
2023-08-02 20:34:15 -07:00 |
|
Stephen Gutekanst
|
095c7795ba
|
editor: fix potential memory leak
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-22 18:50:16 -07:00 |
|
Stephen Gutekanst
|
835748a8c5
|
update to latest mach-core API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-21 23:35:24 -07:00 |
|
Stephen Gutekanst
|
c3e8c25f1d
|
math: update to latest Zig version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-21 20:29:40 -07:00 |
|
Stephen Gutekanst
|
c004ea1b06
|
sprite2d: use nearest texture filter + fix texture coloring
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-15 17:03:12 -07:00 |
|
Stephen Gutekanst
|
6a81c7a579
|
math: bless approximate equality by default
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-15 13:42:25 -07:00 |
|
Stephen Gutekanst
|
d354fd24c4
|
math: cleanup matrix initialization
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-15 13:42:25 -07:00 |
|
Stephen Gutekanst
|
d3f5ce1d98
|
math: cleanup docstrings
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
f9e727fa2d
|
mach: math lib vector dot product
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
9ec766c165
|
mach: math lib consistent function naming
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
72e2df50a3
|
mach: math lib comment for cross product
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
d87895eded
|
mach: math lib added vector cross product function
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
6c60f03386
|
mach: math lib adding const qualifier to set_2d_matrix
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
6af918528c
|
mach: math lib adding test for multiplication
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
6a3720ba7d
|
mach: math lib adding function to test if two matrix are equal and approximately equal
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
becfd948e8
|
mach: math lib adding functionalities for setting 2d/3d matrix
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
5f41195b68
|
mach: math lib added tests for matrix functionalities
including newly added functions rotateX and rotateY
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
e96864242c
|
mach: math lib added testing for vector functionalities
|
2023-07-15 13:42:25 -07:00 |
|
RokKos
|
507f07f72a
|
mach: math lib added rotation for X and Y
|
2023-07-15 13:42:25 -07:00 |
|
Stephen Gutekanst
|
4c34a65020
|
editor: fold shaderexp into editor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-12 17:35:02 -07:00 |
|
Stephen Gutekanst
|
a3ec0fb7a9
|
editor: fix help commands
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-12 10:35:05 -07:00 |
|
Stephen Gutekanst
|
d72155df4c
|
fold app/ into src/editor/
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-12 10:28:21 -07:00 |
|
Stephen Gutekanst
|
3d27836318
|
mach: atlas: add UV calculation helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-04 10:29:30 -07:00 |
|
Stephen Gutekanst
|
a1b4c03f9d
|
mach: add mach.Atlas implementation from Mitchell Hashimoto
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-07-04 08:25:14 -07:00 |
|
Stephen Gutekanst
|
0e1b79969f
|
mach: remove ResourceManager for now
needs much more thought
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-06-30 20:40:30 -07:00 |
|
Stephen Gutekanst
|
4bc32adeb8
|
all: update to latest Zig APIs (zig fmt)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2023-06-29 09:54:32 -07:00 |
|