Function SDL_GetSurfaceImages
pub unsafe extern "C" fn SDL_GetSurfaceImages(
surface: *mut SDL_Surface,
count: *mut i32,
) -> *mut *mut SDL_Surface
Available on crate feature
dep_sdl3
only.Expand description
Get an array including all versions of a surface.
This returns all versions of a surface, with the surface being queried as the first element in the returned array.
Freeing the array of surfaces does not affect the surfaces in the array. They are still referenced by the surface being queried and will be cleaned up normally.
§Parameters
surface
: theSDL_Surface
structure to query.count
: a pointer filled in with the number of surface pointers returned, may be NULL.
§Return value
Returns a NULL terminated array of SDL_Surface
pointers or NULL on
failure; call SDL_GetError()
for more information. This should be
freed with SDL_free()
when it is no longer needed.
§Availability
This function is available since SDL 3.2.0.