SDL School

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

rendererThe renderer.

Return value

True on success. On failure it returns false.

Example

Open a window
SDL_RenderPresent(renderer);

See this code run in Open a window. Download the full program (.zip)

Notes

In SDL2

The name is the same.

See also