Add sibling modules #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The binding covers raylib, rlgl and raymath, but not the three headers most raylib projects use:
raygui, physac and reasings. All three are single-header libraries, so each needs a different
treatment from the current pipeline.
Why they are missing
static inline, so no symbol is ever exportedProposal
raygui and physac
OBJSin theMakefileand tobuild.bat.-d PHYSACDEFand-t "PHYSAC IMPLEMENTATION".--no-raygui/--no-physac/--no-reasingsflags, like the existing--no-rlgl.M.GuiControl.LABEL). raygui reuses names likeDEFAULTandTEXTBOX, which would collide with raylib's flat constants.reasings
Do not bind it. Since every function is
static inline, there is nothing to call. Translate the28 functions to Lua in the generator, one short function each:
Keep the header's evaluation order and formula, and add
M.EasingsplusM.Ease(id, ...)fordata-driven use.
Generator fixes needed first
Vector2 positions[PHYSAC_MAX_VERTICES]. The parser onlyaccepts numeric sizes (
gen-hate-no-d.lua:165-180). Resolve the name through a defines tableand fail if it cannot be resolved.
PhysicsBodyData→PhysicsShape→PhysicsBody→PhysicsBodyDatatrips the cycle check (gen-hate-no-d.lua:388-405). Ignore the dependencywhen the field is a pointer.
Vector2. Keep the first definition (raylib's) andwarn if two definitions disagree.
Acceptance criteria
GuiButton,GuiSlider,GuiGetStyle/GuiSetStylework in a headless test.ClosePhysicsleaves no leak.1e-4.--no-*flags.make check-bindingspasses.Notes
GuiLoadStyle. Document it; do not try to manage it.__gcto them.rcamera.handrgestures.hare a separate decision, not part of this issue.add rayguito Add sibling modules#13