mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Add a get_system_info method to XRInterface
This commit is contained in:
@@ -301,6 +301,16 @@ void WebXRInterfaceJS::uninitialize() {
|
||||
};
|
||||
};
|
||||
|
||||
Dictionary WebXRInterfaceJS::get_system_info() {
|
||||
Dictionary dict;
|
||||
|
||||
// TODO get actual information from WebXR to return here
|
||||
dict[SNAME("XRRuntimeName")] = String("WebXR");
|
||||
dict[SNAME("XRRuntimeVersion")] = String("");
|
||||
|
||||
return dict;
|
||||
}
|
||||
|
||||
Transform3D WebXRInterfaceJS::_js_matrix_to_transform(float *p_js_matrix) {
|
||||
Transform3D transform;
|
||||
|
||||
|
||||
@@ -108,6 +108,7 @@ public:
|
||||
virtual bool is_initialized() const override;
|
||||
virtual bool initialize() override;
|
||||
virtual void uninitialize() override;
|
||||
virtual Dictionary get_system_info() override;
|
||||
|
||||
virtual Size2 get_render_target_size() override;
|
||||
virtual uint32_t get_view_count() override;
|
||||
|
||||
Reference in New Issue
Block a user