Skip to content

Commit

Permalink
wip19
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeodrippe committed Jan 14, 2025
1 parent 657bfc7 commit 4f9a35c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/vybe/flecs_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,23 @@
(reset! @t-global (vr.c/matrix-multiply local (nth transform-parent 0)))
(reset! @t-global local))))))

(vc/defn* default-systems :- :void
(defmethod vc/c-invoke (declare lala)
[{:keys [args]}]
(format "((1ull << 63) | ((((uint64_t)(%s)) << 32) + ((uint32_t)(%s))))"
#_(flecs/ECS_PAIR)
(vc/emit (first args))
(vc/emit (second args))))

(vc/defn* ^:debug default-systems :- :void
[w :- :*]
(tap> 9999)
;; (ECS_PAIR | ((((uint64_t)(EcsDependsOn)) << 32) + ((uint32_t)(EcsOnUpdate))))
#_(bit-or (flecs/ECS_PAIR))
(let [e (vf.c/ecs-entity-init w (vp/& (vf/entity_desc_t
{:name "vybe_transform"
:add (-> [(vf.c/vybe-pair (flecs/EcsDependsOn)
(flecs/EcsOnUpdate))
:add (-> [#_(vf.c/vybe-pair (flecs/EcsDependsOn)
(flecs/EcsOnUpdate))
(lala (flecs/EcsDependsOn) (flecs/EcsOnUpdate))
;; This `0` is important so Flecs can know
;; the end of the array.
0]
Expand Down

0 comments on commit 4f9a35c

Please sign in to comment.