chickadee » sdl2 » flip-surface

flip-surface surface flip-x? flip-y?procedure
flip-surface* surface flip-x? flip-y?procedure

Return a copy of the given surface flipped on the X (horizontal) and/or Y (vertical) axes.

The new surface will have an equivalent pixel format, color key, blend mode, alpha mod, and color mod as the given surface. If the given surface has a palette, the new surface will share the same palette. The new surface will have no clip rect.

  • flip-surface returns a memory-managed sdl2:surface.
  • flip-surface* returns an unmanaged sdl2:surface, which should be freed with free-surface! when you are done with it.

Signals an exception of kind (exn sdl2) if an error occurs.