mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-15 15:58:13 +00:00

This allows functions like SDL_ConvertEventToRenderCoordinates() to work without having to copy the event. Fixes https://github.com/libsdl-org/SDL/issues/10691
This example code creates an SDL window and renderer, and then clears the window to a different color every frame, so you'll effectively get a window that's smoothly fading between colors.