- convert-surface surface pixel-formatprocedure
- convert-surface* surface pixel-formatprocedure
Creates a copy of the given sdl2:surface, but converts it to the given sdl2:pixel-format.
- convert-surface returns a managed sdl2:surface.
- convert-surface* returns an unmanaged sdl2:surface, which must be freed with free-surface! when you are done with it.
Signals an exception of kind (exn sdl2) if an error occurs.