API reference / Windows and drawing
SDL_RenderPresent
Function, SDL3
Shows the hidden picture on the screen. Call it one time at the end of each frame.
Declaration
#include <SDL3/SDL.h>
bool SDL_RenderPresent(SDL_Renderer *renderer);Parameters
renderer | The renderer. |
Return value
True on success. On failure it returns false.
Example
SDL_RenderPresent(renderer);See this code run in Open a window. Download the full program (.zip)
Notes
- Treat the hidden picture as invalid after this call, and draw the full frame again.
In SDL2
The name is the same.