Skip to content

Raylib Integration - #192

Merged
billhails merged 34 commits into
mainfrom
raylib
May 26, 2026
Merged

Raylib Integration#192
billhails merged 34 commits into
mainfrom
raylib

Conversation

@billhails

Copy link
Copy Markdown
Owner

No description provided.

billhails added 30 commits May 24, 2026 13:56
- Add valueAsFloat() helper in builtin_graphics.c accepting STDINT,
  IRRATIONAL, and simple STDINT/STDINT rationals, for use where raylib
  expects float arguments (rotation, pivot, rect dimensions).

- Add builtin_gfx_draw_texture_pro() wrapping raylib's DrawTexturePro.
  Arguments: texture, source rect, destination rect, origin pivot,
  rotation, tint. Allows negative source extents for flip semantics.
  Registered via registerGfxDrawTexturePro().

- Add draw_sprite_pro(tex, srcRect, dstRect, originPoint, rotation, color)
  wrapper in fn/graphics.fn, destructuring Rect/Point/Color at the fn
  layer before delegating to the builtin.

- Extend fn/gfx_texture_demo.fn with three transformed-sprite cases:
  scaled draw, centered rotation (accumulating angle each frame), and
  horizontal flip via negative source width. Window widened to 900px to
  accommodate the third column.
… with FN wrappers and new gfx_2d_primitives_demo
@billhails
billhails merged commit af5f62b into main May 26, 2026
2 checks passed
@billhails
billhails deleted the raylib branch May 26, 2026 18:55
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.

1 participant