Function SDL_StretchSurface
pub unsafe extern "C" fn SDL_StretchSurface(
src: *mut SDL_Surface,
srcrect: *const SDL_Rect,
dst: *mut SDL_Surface,
dstrect: *const SDL_Rect,
scaleMode: SDL_ScaleMode,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Perform a stretched pixel copy from one surface to another.
§Parameters
src
: theSDL_Surface
structure to be copied from.srcrect
: theSDL_Rect
structure representing the rectangle to be copied, may not be NULL.dst
: theSDL_Surface
structure that is the blit target.dstrect
: theSDL_Rect
structure representing the target rectangle in the destination surface, may not be NULL.scaleMode
: theSDL_ScaleMode
to be used.
§Return value
Returns true on success or false on failure; call SDL_GetError()
for more
information.
§Thread safety
The same destination surface should not be used from two threads at once. It is safe to use the same source surface from multiple threads.
§Availability
This function is available since SDL 3.4.0.