diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-26 08:27:24 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-26 08:27:24 +0200 |
commit | 3472bdd6b6dd7c085b716caabdda16f88e6f167e (patch) | |
tree | e9f519da56bc3834d03321955e6a90737c74f88f /modules/openxr/extensions/openxr_android_extension.h | |
parent | 48179f296ac282584762fbf5f80d92f0dec0faba (diff) | |
parent | d5445c25a6f914235b0effbc4c455cecbb5fddd0 (diff) |
Merge pull request #65798 from kisg/dynamic_openxr_loader
Dynamic loading of OpenXR Loader on Android
Diffstat (limited to 'modules/openxr/extensions/openxr_android_extension.h')
-rw-r--r-- | modules/openxr/extensions/openxr_android_extension.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/openxr/extensions/openxr_android_extension.h b/modules/openxr/extensions/openxr_android_extension.h index 88b0e310e7..eda7022064 100644 --- a/modules/openxr/extensions/openxr_android_extension.h +++ b/modules/openxr/extensions/openxr_android_extension.h @@ -31,6 +31,7 @@ #ifndef OPENXR_ANDROID_EXTENSION_H #define OPENXR_ANDROID_EXTENSION_H +#include "../util.h" #include "openxr_extension_wrapper.h" class OpenXRAndroidExtension : public OpenXRExtensionWrapper { @@ -38,10 +39,16 @@ public: static OpenXRAndroidExtension *get_singleton(); OpenXRAndroidExtension(OpenXRAPI *p_openxr_api); + + virtual void on_before_instance_created() override; + virtual ~OpenXRAndroidExtension() override; private: static OpenXRAndroidExtension *singleton; + + // Initialize the loader + EXT_PROTO_XRRESULT_FUNC1(xrInitializeLoaderKHR, (const XrLoaderInitInfoBaseHeaderKHR *), loaderInitInfo) }; #endif // OPENXR_ANDROID_EXTENSION_H |