-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.EndMode2D
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Ends 2D mode with custom camera
None.
None.
cam = {offset:[0,0], target:[0,0], rotation:0, zoom:1}
raylib.BeginDrawing
raylib.ClearBackground raylib.BLACK
raylib.BeginMode2D cam
// ... draw world-space 2D content ...
raylib.EndMode2D
// ... draw HUD in screen space ...
raylib.EndDrawing