Skip to content

Update to raylib 6.x#23

Open
RobLoach wants to merge 2 commits intomasterfrom
update-6
Open

Update to raylib 6.x#23
RobLoach wants to merge 2 commits intomasterfrom
update-6

Conversation

@RobLoach
Copy link
Copy Markdown
Owner

@RobLoach RobLoach commented Mar 11, 2026

Something is keeping it from running.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates this project’s raylib/Umka integration to align with newer upstream versions (raylib 6.x and Umka 1.5.x), adjusting code generation and runtime glue so examples/tests can run again.

Changes:

  • Bumped project/tooling versions and updated dependencies (raylib + Umka, generator schema inputs).
  • Updated the Umka runtime invocation code in bin/raylib-umka.c to newer Umka API patterns.
  • Adjusted generator type mappings/struct field handling and tweaked a lifecycle assertion in the Umka test.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/raylib-umka-tests.um Removes a post-CloseWindow() readiness assertion in the lifecycle test.
package.json Version bump; script refactor; switches @raylib/api to a GitHub ref; bumps gh-pages.
generator/index.js Updates struct/type mappings and field-name escaping for Umka codegen; updates dependency docs.
CMakeLists.txt Version bump to 0.6.0.
cmake/Findumka.cmake Updates fetched Umka tag/version to v1.5.5.
cmake/Findraylib.cmake Pins raylib FetchContent GIT_TAG to a specific commit SHA.
bin/raylib-umka.c Updates to new Umka function call/get-error APIs and adjusts web update callback call signature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +271 to +272
case 'const float *':
return 'const ^real32';
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

raylibTypeToUmka() contains two case 'const float *' branches; the second one is unreachable and the function will always return ^real32 for that type. Remove the duplicate and decide on a single mapping for const float * (and keep it consistent with other const …* mappings).

Suggested change
case 'const float *':
return 'const ^real32';

Copilot uses AI. Check for mistakes.
"devDependencies": {
"@raylib/api": "~4.5.0",
"gh-pages": "^4.0.0"
"@raylib/api": "robloach/raylib-api#6",
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raylib/api is referenced via a moving GitHub ref (robloach/raylib-api#6). Because that can change over time, builds may become non-reproducible. Consider pinning this to an immutable tag/commit SHA (similar to how raylib is pinned in Findraylib.cmake) so CI and consumers always get the same API schema.

Suggested change
"@raylib/api": "robloach/raylib-api#6",
"@raylib/api": "robloach/raylib-api#<full-40-character-commit-sha-for-the-current-#6-revision>",

Copilot uses AI. Check for mistakes.
@@ -56,5 +56,4 @@ fn main() {
// Finish
raylib.EndDrawing()
raylib.CloseWindow()
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The post-CloseWindow() assertion on IsWindowReady() was removed, which reduces coverage of the window lifecycle. If raylib 6.x changed semantics here, consider updating the expectation (or asserting an alternative post-close invariant) rather than dropping the check entirely so regressions in CloseWindow()/binding behavior are still caught.

Suggested change
raylib.CloseWindow()
raylib.CloseWindow()
Assert.False(raylib.IsWindowReady(), "IsWindowReady() after CloseWindow()")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants