Scroll to navigation

SDL_OpenXR_LoadLibrary(3) SDL3 FUNCTIONS SDL_OpenXR_LoadLibrary(3)

NAME

SDL_OpenXR_LoadLibrary - Dynamically load the OpenXR loader.

SYNOPSIS

#include <SDL3/SDL_openxr.h>
bool SDL_OpenXR_LoadLibrary(void);

DESCRIPTION

This can be called at any time.

SDL keeps a reference count of the OpenXR loader, calling this function multiple times will increment that count, rather than loading the library multiple times.

If not called, this will be implicitly called when creating a GPU device with OpenXR.

This function will use the platform default OpenXR loader name, unless the SDL_HINT_OPENXR_LIBRARY hint is set.

RETURN VALUE

Returns true on success or false on failure; call SDL_GetError() for more information.

THREAD SAFETY

This function is not thread safe.

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_HINT_OPENXR_LIBRARY(3)

SDL 3.5.0 Simple Directmedia Layer