SDL_UnlockSurface - Release a surface after directly accessing the pixels.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
surface
the SDL_Surface structure to be unlocked.
Name
SDL_UnlockSurface - Release a surface after directly accessing the pixels.
See Also
SDL_LockSurface(3) Simple Directmedia Layer SDL 3.2.20 SDL_UnlockSurface(3)
Synopsis
#include<SDL3/SDL_surface.h>voidSDL_UnlockSurface(SDL_Surface*surface);
Thread Safety
This function is not thread safe. The locking referred to by this function is making the pixels available
for direct access, not thread-safe locking.
