sdlSaveAllDollarTemplates function

int sdlSaveAllDollarTemplates(
  1. Pointer<SdlRWops> dst
)

Save all currently loaded Dollar Gesture templates.

\param dst a SDL_RWops to save to \returns the number of saved templates on success or 0 on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_LoadDollarTemplates \sa SDL_SaveDollarTemplate

extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst)

Implementation

int sdlSaveAllDollarTemplates(Pointer<SdlRWops> dst) {
  final sdlSaveAllDollarTemplatesLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Pointer<SdlRWops> dst),
      int Function(Pointer<SdlRWops> dst)>('SDL_SaveAllDollarTemplates');
  return sdlSaveAllDollarTemplatesLookupFunction(dst);
}