sdlDestroyEnvironment function

void sdlDestroyEnvironment(
  1. Pointer<SdlEnvironment> env
)

Destroy a set of environment variables.

\param env the environment to destroy.

\threadsafety It is safe to call this function from any thread, as long as the environment is no longer in use.

\since This function is available since SDL 3.1.3.

\sa SDL_CreateEnvironment

extern SDL_DECLSPEC void SDLCALL SDL_DestroyEnvironment(SDL_Environment *env)

Implementation

void sdlDestroyEnvironment(Pointer<SdlEnvironment> env) {
  final sdlDestroyEnvironmentLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlEnvironment> env),
      void Function(Pointer<SdlEnvironment> env)>('SDL_DestroyEnvironment');
  return sdlDestroyEnvironmentLookupFunction(env);
}