sdlRemoveSurfaceAlternateImages function surface

void sdlRemoveSurfaceAlternateImages(
  1. Pointer<SdlSurface> surface
)

Remove all alternate versions of a surface.

This function removes a reference from all the alternative versions, destroying them if this is the last reference to them.

\param surface the SDL_Surface structure to update.

\threadsafety This function can be called on different threads with different surfaces.

\since This function is available since SDL 3.2.0.

\sa SDL_AddSurfaceAlternateImage \sa SDL_GetSurfaceImages \sa SDL_SurfaceHasAlternateImages

extern SDL_DECLSPEC void SDLCALL SDL_RemoveSurfaceAlternateImages(SDL_Surface *surface)

Implementation

void sdlRemoveSurfaceAlternateImages(Pointer<SdlSurface> surface) {
  final sdlRemoveSurfaceAlternateImagesLookupFunction = _libSdl
      .lookupFunction<
        Void Function(Pointer<SdlSurface> surface),
        void Function(Pointer<SdlSurface> surface)
      >('SDL_RemoveSurfaceAlternateImages');
  return sdlRemoveSurfaceAlternateImagesLookupFunction(surface);
}