Add a get_system_info method to XRInterface
This commit is contained in:
parent
550a779851
commit
e31c2e4277
14 changed files with 69 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue