mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 15:30:41 +00:00
Baseline working openvr code
This commit is contained in:
parent
e239d106f5
commit
ba91478fad
23 changed files with 1463 additions and 457 deletions
|
|
@ -34,8 +34,16 @@ class GuiCanvas;
|
|||
/// Defines the basic display pose common to most display devices
|
||||
typedef struct DisplayPose
|
||||
{
|
||||
EulerF orientation; /// Direction device is facing
|
||||
QuatF orientation; /// Direction device is facing
|
||||
Point3F position; /// Relative position of device in view space
|
||||
|
||||
Point3F velocity;
|
||||
Point3F angularVelocity;
|
||||
|
||||
U32 state; /// Generic state
|
||||
|
||||
bool valid; /// Pose set
|
||||
bool connected; /// Device connected
|
||||
} IDevicePose;
|
||||
|
||||
class IDisplayDevice
|
||||
|
|
@ -63,6 +71,9 @@ public:
|
|||
virtual GameConnection* getCurrentConnection() = 0;
|
||||
|
||||
virtual void onStartFrame() = 0;
|
||||
|
||||
/// Returns a texture handle representing a preview of the composited VR view
|
||||
virtual GFXTexHandle getPreviewTexture() = 0;
|
||||
};
|
||||
|
||||
#endif // _IDISPLAYDEVICE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue