#sdl #callback #api #sdl3 #documentation

no-std sdl3-main

Tools for using SDL's main and callback APIs

4 releases (breaking)

0.4.0 Jan 21, 2025
0.3.0 Jan 16, 2025
0.2.0 Jan 8, 2025
0.1.0 Nov 17, 2024

#8 in #sdl

Download history 97/week @ 2024-11-13 19/week @ 2024-11-20 3/week @ 2024-11-27 12/week @ 2024-12-04 6/week @ 2024-12-11 131/week @ 2025-01-08 167/week @ 2025-01-15 81/week @ 2025-01-22

379 downloads per month

Zlib license

2.5MB
17K SLoC

sdl3-main

This crate provides tools for using SDL 3's main and callback APIs.

SDL main

To provide your own main but call it through SDL, use the main attribute macro. See the documentation for that for more information.

Callback API

To use the SDL callback API, you can use either the app_impl attribute macro, or all four of the app_init, app_iterate, app_event and app_quit attribute macros. Don't use the main attribute macro in this mode. See the documentation for more information.

Dependencies