1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-05 17:15:09 +00:00

OpenXR add core support for Khronos loader

This commit is contained in:
Bastiaan Olij
2025-05-28 14:55:55 +10:00
parent ef34c3d534
commit c056cae437
7 changed files with 213 additions and 16 deletions

View File

@@ -34,8 +34,27 @@
#include "openxr_binding_modifier_editor.h"
#include "openxr_select_runtime.h"
#include "editor/export/editor_export_plugin.h"
#include "editor/plugins/editor_plugin.h"
class OpenXRExportPlugin : public EditorExportPlugin {
GDCLASS(OpenXRExportPlugin, EditorExportPlugin)
public:
virtual bool supports_platform(const Ref<EditorExportPlatform> &p_export_platform) const override;
virtual PackedStringArray get_android_dependencies(const Ref<EditorExportPlatform> &p_export_platform, bool p_debug) const override;
protected:
virtual String _get_export_option_warning(const Ref<EditorExportPlatform> &p_export_platform, const String &p_option_name) const override;
virtual PackedStringArray _get_export_features(const Ref<EditorExportPlatform> &p_export_platform, bool p_debug) const override;
virtual String get_android_manifest_element_contents(const Ref<EditorExportPlatform> &p_export_platform, bool p_debug) const override;
virtual String get_android_manifest_activity_element_contents(const Ref<EditorExportPlatform> &p_export_platform, bool p_debug) const override;
private:
bool is_openxr_mode() const;
};
class OpenXREditorPlugin : public EditorPlugin {
GDCLASS(OpenXREditorPlugin, EditorPlugin);
@@ -53,4 +72,10 @@ public:
virtual void make_visible(bool p_visible) override;
OpenXREditorPlugin();
protected:
void _notification(int p_what);
private:
Ref<OpenXRExportPlugin> openxr_export_plugin;
};