prime31 / zig-flecs

52 stars 9 forks source link

Flecs 3.2 , node sys issue etc #28

Open dynnamitt opened 1 year ago

dynnamitt commented 1 year ago

Flecs is now 3.2, this repo is getting behind.. are Flecs using important macros that cannot be auto converted to zig functions?

Should i use Flecs as a direct c include or is this wrapper required in a zig project?

Srekel commented 1 year ago

Hi, this repo is old by now. I think the most up to date open source binding is zflecs by zig-gamedev. On Tides of Revival https://github.com/Srekel/elvengroin-legacy/tree/main/src/flecs_util we use zflecs and have modified these zig-flecs bindings to sit on top of that instead to provide the core functionality. Feel free to steal that :)

(Though I am good enough of a stalker to know that @prime31 is working on new/improved bindings 😆 I'm not sure if the plan is to open source them and if so if they are replacing what's in this repo)

prime31 commented 1 year ago

@Srekel is indeed correct. I used most of this repo as a base and the struct-based query/filter generator is moving to the forefront. What was built on top of that is probably too opinionated for most to use though. It's essentially a Ziggified Bevy setup with system ordering custom phases, system sets and some other stuff all built on top of Flecs.

Code is all already open source just shoved in a branch of another repo until I get around to putting it in its own repo. The branch is here: https://github.com/prime31/zig-aya/tree/neo-wgpu/src/ecs