Commit graph

92 commits

Author SHA1 Message Date
Lorenzo Torres
3199697470 Fixed rendering module in documentation 2025-08-07 04:18:52 +02:00
Lorenzo Torres
68b1367bdf Enabled mods in sideros.zig 2025-08-07 04:13:53 +02:00
Lorenzo Torres
162800ac83 fixed formatting in mods/ir.zig 2025-08-07 04:08:45 +02:00
Lorenzo Torres
b1d092b6e3 Cleaned up rendering module 2025-08-07 03:57:53 +02:00
luccie-cmd
473c4aeffb [MODS/VM]: Actually respect the difference between signed and unsigned 2025-08-06 18:55:34 +02:00
luccie-cmd
8282a299b1 Rename preinit to init and add more instructions 2025-08-06 18:51:48 +02:00
Lorenzo Torres
8b5f33ee3f Fixed normal transformation 2025-08-06 17:51:03 +02:00
Lorenzo Torres
defdf051ec Implemented rotations 2025-08-06 16:35:29 +02:00
Lorenzo Torres
9a69989e46 Merge branch 'master' of ssh://git.sideros.org/git/sideros 2025-08-06 16:08:49 +02:00
Lorenzo Torres
c3a85ce50f Inverted view matrix 2025-08-06 16:08:36 +02:00
luccie-cmd
3c105c235e [ASSETS] create a seperate assets/mods directory 2025-08-06 15:55:21 +02:00
Lorenzo Torres
fb031e8a66 Fixed face culling 2025-08-06 15:50:05 +02:00
Lorenzo Torres
8a56f94b7f Merge branch 'master' of ssh://git.sideros.org/git/sideros 2025-08-06 15:32:41 +02:00
Lorenzo Torres
6b948f6718 Implemented transformations 2025-08-06 15:32:32 +02:00
luccie-cmd
98cbb47031 [MODS/WASM] Add some more instructions 2025-08-06 11:40:32 +02:00
luccie-cmd
a295365993 [MODS/WASM]: Get tables, elems, data and more VM instructions working 2025-08-05 22:59:41 +02:00
Ernesto Lanchares
5bd3e6c57b FIXED typo.
Signed-off-by: luccie-cmd <luccie@sideros.org>
2025-08-05 22:38:12 +02:00
Lorenzo Torres
00d51fc970 Fixed last commit 2025-08-05 20:59:58 +02:00
Ernesto Lanchares
b1bd949db5 Refactored compilation and startup. Now everything is orchestrated through a simple API described in sideros_api.h. Also refactored some of the code to get rid of global C imports.
Signed-off-by: Lorenzo Torres <torres@sideros.org>
2025-08-05 20:16:39 +02:00
Lorenzo Torres
5b51a3d571 Implemented basic lighting! 2025-08-05 19:06:58 +02:00
luccie-cmd
83d91cfffe Fixed the functions 2025-08-04 20:48:35 +02:00
luccie-cmd
6f942fe9c2 Add full support for globals 2025-08-04 19:33:05 +02:00
luccie-cmd
53eb24dc35 Comment main back out 2025-08-04 19:24:03 +02:00
luccie-cmd
94195fc774 Added support for global variables 2025-08-04 19:21:12 +02:00
Lorenzo Torres
1da655d164 Merge branch 'master' of ssh://git.sideros.org/git/sideros 2025-08-04 17:24:11 +02:00
Lorenzo Torres
dcb2ee0584 Added camera uniforms for projection and view matrix 2025-08-04 17:23:00 +02:00
luccie-cmd
baa3877f99 Commented out main stuff 2025-08-04 16:03:33 +02:00
luccie-cmd
e0d44a5f84 Added support for importing functions and begin working on a modding tools 2025-08-04 16:03:06 +02:00
Lorenzo Torres
59e3997056 Fixed gltf parser memory leak 2025-08-04 14:19:29 +02:00
Lorenzo Torres
a8071bd783 Made render a system again 2025-08-04 13:56:50 +02:00
Lorenzo Torres
933cf2f1f4 Removed unecessary Window struct 2025-08-04 13:43:09 +02:00
Lorenzo Torres
66a6dc33ec Main loop now doesn't always wait for events 2025-08-04 13:41:38 +02:00
Lorenzo Torres
097a6a9b5c Implemented Xorg initialization code 2025-08-04 02:46:36 +02:00
Lorenzo Torres
f894fb317d Implemented wayland initialization code 2025-08-03 23:23:03 +02:00
luccie-cmd
139e5aacbc Add parameter handling and remove redundant comments 2025-08-03 16:14:50 +02:00
Lorenzo Torres
a143b838fd Moved all modules to the root module 2025-08-02 15:46:46 +02:00
Lorenzo Torres
e7e0927a83 Updated the source for master 2025-08-01 21:38:27 +02:00
Ernesto Lanchares
ecff349a31 Fixed memory leak in ECS. 2025-04-04 18:57:21 +02:00
Ernesto Lanchares
25e51f9aea Modified how exports work and fixed memory leaks.
Now exports are already defined by the mods api
(something like preinit, init, preframe,
postframe, deinit should be enough functions). At
the moment we only support preinit function.
2025-04-04 18:34:58 +02:00
luccie-cmd
28420f53b0 Added executing of and 2025-03-30 15:00:17 +02:00
luccie-cmd
916115c7cd Added parsing of and 2025-03-30 15:00:17 +02:00
Ernesto Lanchares
237ead3921 Fixed an error during ir parsing. 2025-03-30 14:36:51 +02:00
Lorenzo Torres
9ff5e811a8 Merge branch 'master' of ssh://git.sideros.org:/git/sideros 2025-03-29 21:20:16 +01:00
luccie-cmd
2dc07080dd Add every single instruction prototype for WASM VM 2025-03-29 20:17:52 +01:00
Ernesto Lanchares
16343878cd Started adding all of IR opcodes 2025-03-29 19:31:08 +01:00
Ernesto Lanchares
7023261320 Changed structs in the VM 2025-03-29 19:16:17 +01:00
Lorenzo Torres
16a2a40418 moved rendering to a system.
To ensure that the rendering system is being run in the main thread, I
added the concept of "Sync systems", so that when a system group is
created it's possible to specify whether it's possible to run it on a
separate thread or not.
2025-03-29 16:15:56 +01:00
Lorenzo Torres
fd7973173f Added cursor input management 2025-03-29 14:51:31 +01:00
luccie-cmd
bffe814150 Added new main file 2025-03-28 20:04:51 +01:00
Lorenzo Torres
3bd394d6bc fix Window.zig 2025-03-28 19:58:39 +01:00