cntrl/third_party/clay
2026-11-23 21:49:20 +04:00
..
clay.h FBC: NIGHT SHIFT - office litter kit, destructible dressing and AOE paper-burst VFX 2026-11-23 21:49:20 +04:00
LICENSE FBC: NIGHT SHIFT - office litter kit, destructible dressing and AOE paper-burst VFX 2026-11-23 21:49:20 +04:00
README.md FBC: NIGHT SHIFT - office litter kit, destructible dressing and AOE paper-burst VFX 2026-11-23 21:49:20 +04:00

Clay (vendored)

clay.h — single-header UI layout library by Nic Barker (https://github.com/nicbarker/clay), zlib license (see LICENSE).

  • Version: 0.14 (// VERSION: 0.14 at the top of clay.h)
  • Vendored from: main @ e6cc36941ab2af5d81107617039d6f527a1c660b (2026-05-20)
  • Why it fits the third-party policy (docs/03): one header, zero dependencies (not even libc), arena-based (no malloc), renderer-agnostic — it emits Clay_RenderCommands that src/render/clay_ui.cpp draws with raylib.

Integration notes (docs/11):

  • CLAY_IMPLEMENTATION is defined in exactly one TU — src/render/clay_impl.cpp (same pattern as raygui_impl.cpp).
  • The header is not modified. Do not edit it; upgrades should replace the file wholesale so diffs against upstream stay readable.
  • Requires C++20 (the project standard) or C99.