Class DummyDevice
- Namespace
- Stride.VirtualReality
- Assembly
- Stride.VirtualReality.dll
public class DummyDevice : VRDevice, IDisposable
- Inheritance
-
DummyDevice
- Implements
- Inherited Members
- Extension Methods
Constructors
DummyDevice(IServiceRegistry)
public DummyDevice(IServiceRegistry services)
Parameters
services
IServiceRegistry
Fields
BuildMirror
If true, build the mirror view.
public bool BuildMirror
Field Value
Logger
public static Logger Logger
Field Value
UseGyroscope
Use the gyroscope of the device to simulate device orientation changes.
public bool UseGyroscope
Field Value
Properties
ActualRenderFrameSize
public override Size2 ActualRenderFrameSize { get; protected set; }
Property Value
CanInitialize
public override bool CanInitialize { get; }
Property Value
HeadAngularVelocity
public override Vector3 HeadAngularVelocity { get; }
Property Value
HeadLinearVelocity
public override Vector3 HeadLinearVelocity { get; }
Property Value
HeadPosition
public override Vector3 HeadPosition { get; }
Property Value
HeadRotation
public override Quaternion HeadRotation { get; }
Property Value
LeftHand
public override TouchController LeftHand { get; }
Property Value
MirrorTexture
public override Texture MirrorTexture { get; protected set; }
Property Value
OptimalRenderFrameSize
public override Size2 OptimalRenderFrameSize { get; }
Property Value
RenderFrameScaling
public override float RenderFrameScaling { get; set; }
Property Value
RightHand
public override TouchController RightHand { get; }
Property Value
State
public override DeviceState State { get; }
Property Value
TrackedItems
public override TrackedItem[] TrackedItems { get; }
Property Value
Methods
Commit(CommandList, Texture)
public override void Commit(CommandList commandList, Texture renderFrame)
Parameters
commandList
CommandListrenderFrame
Texture
Draw(GameTime)
public override void Draw(GameTime gameTime)
Parameters
gameTime
GameTime
Enable(GraphicsDevice, GraphicsDeviceManager, bool, int, int)
public override void Enable(GraphicsDevice device, GraphicsDeviceManager graphicsDeviceManager, bool requireMirror, int mirrorWidth, int mirrorHeight)
Parameters
device
GraphicsDevicegraphicsDeviceManager
GraphicsDeviceManagerrequireMirror
boolmirrorWidth
intmirrorHeight
int
GetSpaceChangeRotation()
public Quaternion GetSpaceChangeRotation()
Returns
ReadEyeParameters(Eyes, float, float, ref Vector3, ref Matrix, bool, bool, out Matrix, out Matrix)
public override void ReadEyeParameters(Eyes eye, float near, float far, ref Vector3 cameraPosition, ref Matrix cameraRotation, bool ignoreHeadRotation, bool ignoreHeadPosition, out Matrix view, out Matrix projection)
Parameters
eye
Eyesnear
floatfar
floatcameraPosition
Vector3cameraRotation
MatrixignoreHeadRotation
boolignoreHeadPosition
boolview
Matrixprojection
Matrix
Recenter()
public override void Recenter()
Update(GameTime)
public override void Update(GameTime gameTime)
Parameters
gameTime
GameTime