← dev
SDL3
Resources
- Wiki: Main functions
- You should always import (once)
SDL_main.h, as this will handle the different entry-points that some platforms handle (e.g. WinMain)
- You can implement everything with callbacks, instead of an entry-point defining
#define SDL_MAIN_USE_CALLBACKS before importing SDL_main.h
- The reason for doing this is that there are platforms that want to handle when a new frame is presented (e.g. iOS), or they notify when a new frame could be drawn (e.g. wayland), and so SDL handles the differences by using this callbacks.
To read