You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Renaming all ARVR nodes to XR
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
#ifndef MOBILE_VR_INTERFACE_H
|
||||
#define MOBILE_VR_INTERFACE_H
|
||||
|
||||
#include "servers/arvr/arvr_interface.h"
|
||||
#include "servers/arvr/arvr_positional_tracker.h"
|
||||
#include "servers/xr/xr_interface.h"
|
||||
#include "servers/xr/xr_positional_tracker.h"
|
||||
|
||||
/**
|
||||
@author Bastiaan Olij <mux213@gmail.com>
|
||||
@@ -47,8 +47,8 @@
|
||||
more advanced interfaces.
|
||||
*/
|
||||
|
||||
class MobileVRInterface : public ARVRInterface {
|
||||
GDCLASS(MobileVRInterface, ARVRInterface);
|
||||
class MobileVRInterface : public XRInterface {
|
||||
GDCLASS(MobileVRInterface, XRInterface);
|
||||
|
||||
private:
|
||||
bool initialized;
|
||||
@@ -137,9 +137,9 @@ public:
|
||||
|
||||
virtual Size2 get_render_targetsize();
|
||||
virtual bool is_stereo();
|
||||
virtual Transform get_transform_for_eye(ARVRInterface::Eyes p_eye, const Transform &p_cam_transform);
|
||||
virtual CameraMatrix get_projection_for_eye(ARVRInterface::Eyes p_eye, real_t p_aspect, real_t p_z_near, real_t p_z_far);
|
||||
virtual void commit_for_eye(ARVRInterface::Eyes p_eye, RID p_render_target, const Rect2 &p_screen_rect);
|
||||
virtual Transform get_transform_for_eye(XRInterface::Eyes p_eye, const Transform &p_cam_transform);
|
||||
virtual CameraMatrix get_projection_for_eye(XRInterface::Eyes p_eye, real_t p_aspect, real_t p_z_near, real_t p_z_far);
|
||||
virtual void commit_for_eye(XRInterface::Eyes p_eye, RID p_render_target, const Rect2 &p_screen_rect);
|
||||
|
||||
virtual void process();
|
||||
virtual void notification(int p_what);
|
||||
|
||||
Reference in New Issue
Block a user