# Working with raylib and Clay

> The framework is built on raylib and hides none of it: what it does in your place, and how to reach raylib, Clay, rlgl and plain C yourself.

Source: https://omardev29.github.io/rmp-docs/manual/raylib/index.html

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](https://omardev29.github.io/rmp-docs/manual/raylib/raylib.html) — 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](https://omardev29.github.io/rmp-docs/manual/raylib/clay.html) — 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](https://omardev29.github.io/rmp-docs/manual/raylib/rlgl.html) — raylib's GL layer from a game, which OpenGL each target really runs, and what raw OpenGL costs you.
- [Plain C](https://omardev29.github.io/rmp-docs/manual/raylib/plain-c.html) — 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.
