sdlCreateProperties function

int sdlCreateProperties()

Create a group of properties.

All properties are automatically destroyed when SDL_Quit() is called.

\returns an ID for a new group of properties, or 0 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.

\sa SDL_DestroyProperties

extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_CreateProperties(void)

Implementation

int sdlCreateProperties() {
  final sdlCreatePropertiesLookupFunction =
      libSdl3.lookupFunction<Uint32 Function(), int Function()>(
          'SDL_CreateProperties');
  return sdlCreatePropertiesLookupFunction();
}