Function SDL_FlipSurface

pub unsafe extern "C" fn SDL_FlipSurface(
    surface: *mut SDL_Surface,
    flip: SDL_FlipMode,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Flip a surface vertically or horizontally.

§Parameters

  • surface: the surface to flip.
  • flip: the direction to flip.

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.