Did you know ... Search Documentation:
Pack sdlpl -- prolog/sdl/surface.pl
PublicShow source
 sdl_destroysurface(+Surface:blob) is det
Destroy a previously created surface blob.
See also
- https://wiki.libsdl.org/SDL3/SDL_DestroySurface
 sdl_createsurfacefrom(-Surface:blob, +Width:positive_integer, +Height:positive_integer, +Format:sdl_pixel_format, +Pixels:ptr_blob, +Pitch:integer) is det
Wrap existing pixel data in an SDL surface without copying. Pixels is a PtrBlob (e.g. from cairo_image_surface_get_data) whose pointed-to buffer is borrowed by the surface; the surface keeps a reference to the buffer so it stays valid for the surface's lifetime. Format is one of the atoms enumerated by sdl_pixel_format/2, and Pitch is the byte stride of a row.
See also
- https://wiki.libsdl.org/SDL3/SDL_CreateSurfaceFrom