sdlUnlockSurface function

void sdlUnlockSurface(
  1. Pointer<SdlSurface> surface
)

Release a surface after directly accessing the pixels.

\param surface the SDL_Surface structure to be unlocked.

\since This function is available since SDL 3.1.3.

\sa SDL_LockSurface

extern SDL_DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface)

Implementation

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