sdlSaveDollarTemplate function

int sdlSaveDollarTemplate(
  1. int gestureId,
  2. Pointer<SdlRWops> dst
)

Save a currently loaded Dollar Gesture template.

\param gestureId a gesture id \param dst a SDL_RWops to save to \returns 1 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_SaveAllDollarTemplates

extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst)

Implementation

int sdlSaveDollarTemplate(int gestureId, Pointer<SdlRWops> dst) {
  final sdlSaveDollarTemplateLookupFunction = libSdl2.lookupFunction<
      Int32 Function(Int64 gestureId, Pointer<SdlRWops> dst),
      int Function(
          int gestureId, Pointer<SdlRWops> dst)>('SDL_SaveDollarTemplate');
  return sdlSaveDollarTemplateLookupFunction(gestureId, dst);
}