Working with raylib and Clay

Everything the framework adds lives under rmp::, and everything else in a game is raylib's, unchanged in its API and fully available. These pages are about that border: what the framework does in your place, what stays yours, and how to go below it — to raylib directly, to the layout engine underneath rmp::ui, to rlgl and OpenGL, or out of the framework altogether.

  • raylib in your game — what the framework owns (the window, the frame, the clock), what you are free to call in _update() and _draw(), and the handful of raylib calls that would fight it.
  • Dropping to Clay — writing Clay's own elements in the same frame as rmp::ui, and the rules that make it work: ids, strings, images.
  • rlgl and OpenGL — raylib's GL layer from a game, which OpenGL each target really runs, and what raw OpenGL costs you.
  • Plain C — the opt-out: your own main() in C, the build and the pipeline kept, the runtime layer given up.

The rule underneath all four is the same one: the framework never stops you from calling raylib, and it never asks you to. rmp::assets does not stop you calling LoadTexture(), and rmp::ui does not stop you calling Clay.