sdlCopyProperties function

bool sdlCopyProperties(
  1. int src,
  2. int dst
)

Copy a group of properties.

Copy all the properties from one group of properties to another, with the exception of properties requiring cleanup (set using SDL_SetPointerPropertyWithCleanup()), which will not be copied. Any property that already exists on dst will be overwritten.

\param src the properties to copy. \param dst the destination properties. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC bool SDLCALL SDL_CopyProperties(SDL_PropertiesID src, SDL_PropertiesID dst)

Implementation

bool sdlCopyProperties(int src, int dst) {
  final sdlCopyPropertiesLookupFunction = libSdl3.lookupFunction<
      Uint8 Function(Uint32 src, Uint32 dst),
      int Function(int src, int dst)>('SDL_CopyProperties');
  return sdlCopyPropertiesLookupFunction(src, dst) == 1;
}