unlock method
void
unlock()
Release a surface after directly accessing the pixels.
\param surface the SDL_Surface structure to be unlocked.
\threadsafety 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.
\since This function is available since SDL 3.2.0.
\sa SDL_LockSurface
extern SDL_DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface)
{@category surface}
Implementation
void unlock() {
sdlUnlockSurface(this);
}