duplicate method
Creates a new surface identical to the existing surface.
If the original surface has alternate images, the new surface will have a reference to them as well.
The returned surface should be freed with SDL_DestroySurface().
\param surface the surface to duplicate. \returns a copy of the surface or NULL on failure; call SDL_GetError() for more information.
\threadsafety This function can be called on different threads with different surfaces.
\since This function is available since SDL 3.2.0.
\sa SDL_DestroySurface
extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_DuplicateSurface(SDL_Surface *surface)
{@category surface}
Implementation
Pointer<SdlSurface> duplicate() => sdlDuplicateSurface(this);