sdlUnlockSurface function surface

void sdlUnlockSurface(
  1. Pointer<SdlSurface> surface
)

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)

Implementation

void sdlUnlockSurface(Pointer<SdlSurface> surface) {
  final sdlUnlockSurfaceLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlSurface> surface),
        void Function(Pointer<SdlSurface> surface)
      >('SDL_UnlockSurface');
  return sdlUnlockSurfaceLookupFunction(surface);
}