1 Overview
The sdl3 library provides two layers:
Safe API (sdl3) —
Idiomatic Racket interface with automatic resource management via custodians, symbol-based flags, and match-friendly event structs. Raw API (sdl3/raw) —
Direct FFI bindings that mirror the C API. Function names follow the pattern SDL-FunctionName.
Most users should use the safe API. The raw API is available for advanced use cases requiring direct pointer access.