How wozt/proto-pso-menu works
PSO Menu is a host-integrated C11 immediate-mode UI library: the host owns the SDL window, renderer, event loop, and final presentation. Its main workflow is to create a UI context, deliver input and declare widgets each frame, then draw into the host renderer. Separate capabilities cover validated configuration, layout and text editing, Cyber backgrounds, CRT effects, optional GLES composition, and an optional shell terminal. The graph follows documented API boundaries; unsampled implementation details are not treated as confirmed call relationships.
Main entry points: widgets.c Widgets · core.c UI context · retro_fx.inc.c Retro effects · gles.c GLES renderer
Components 21
UI runtime
- UI context
src/core.c - SDL drawing
src/render.c - Image support
src/image.c
Input and components
- Widgets
src/widgets.c - Input adapter
src/input.c - Layout geometry
src/layout.c - Extended widgets
src/extra.c - Text editing
src/text.c - Advanced controls
src/advanced.c - Filtering
src/filter.c
Visual systems
- Legacy CRT
src/crt.c - Retro effects
src/retro_fx.inc.c - Effect settings
src/retro_settings.c - Shader sources
src/retro_shaders.inc.h - GLES renderer
src/gles.c - GLES stub
src/gles_stub.c - Cyber background
src/cyber.c
Configuration and terminal
- Profiles
src/config.c - Shell terminal
src/terminal.c - Terminal stub
src/terminal_stub.c
Other components
- Host application
Connections 15
- Host application → UI context: creates context
README.md - Host application → Input adapter: routes events
README.md - Host application → Widgets: declares widgets
README.md - Host application → SDL drawing: ends frame
README.md - Host application → GLES renderer: may composite
README.md - UI context → Widgets: frames UI
- Widgets → SDL drawing: draws UI
- Host application → Layout geometry: uses geometry
README.md - Host application → Profiles: loads profiles
README.md - Host application → Cyber background: may render background
README.md - Host application → Shell terminal: may poll and draw
README.md - GLES renderer → Retro effects: uses effects
src/gles.c - Retro effects → Shader sources: includes shaders
src/retro_fx.inc.c - GLES stub → Host application: provides fallback API
README.md - Terminal stub → Host application: provides fallback API
README.md