DummyDevice Class
Namespace: Stride.VirtualReality
Assembly: Stride.VirtualReality.dll
Derived from DummyDevice:
public class DummyDevice : VRDevice, IDisposable
Name |
Description |
Constructors
|
|
DummyDevice(IServiceRegistry) |
|
Fields
|
|
BuildMirror |
If true, build the mirror view.
|
|
Logger |
|
|
UseGyroscope |
Use the gyroscope of the device to simulate device orientation changes.
|
Properties
|
|
ActualRenderFrameSize |
|
|
CanInitialize |
|
|
HeadAngularVelocity |
|
|
HeadLinearVelocity |
|
|
HeadPosition |
|
|
HeadRotation |
|
|
LeftHand |
|
|
MirrorTexture |
|
|
OptimalRenderFrameSize |
|
|
RenderFrameScaling |
|
|
RightHand |
|
|
State |
|
|
TrackedItems |
|
Methods
|
|
Commit(CommandList, Texture) |
|
|
Draw(GameTime) |
|
|
Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32) |
|
|
GetSpaceChangeRotation() |
|
|
ReadEyeParameters(Eyes, Single, Single, ref Vector3, ref Matrix, Boolean, Boolean, out Matrix, out Matrix) |
|
|
Recenter() |
|
|
Update(GameTime) |
|
|
Improve this Doc
View Source
Constructors
DummyDevice(IServiceRegistry)
public DummyDevice(IServiceRegistry services)
Parameters
|
Improve this Doc
View Source
Fields
BuildMirror
If true, build the mirror view.
Field Value
Type |
Description |
System.Boolean |
|
Logger
public static Logger Logger
Field Value
UseGyroscope
Use the gyroscope of the device to simulate device orientation changes.
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Properties
ActualRenderFrameSize
public override Size2 ActualRenderFrameSize { get; protected set; }
Property Value
Overrides
CanInitialize
public override bool CanInitialize { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
HeadAngularVelocity
public override Vector3 HeadAngularVelocity { get; }
Property Value
Overrides
HeadLinearVelocity
public override Vector3 HeadLinearVelocity { get; }
Property Value
Overrides
HeadPosition
public override Vector3 HeadPosition { get; }
Property Value
Overrides
HeadRotation
public override Quaternion HeadRotation { get; }
Property Value
Overrides
LeftHand
public override TouchController LeftHand { get; }
Property Value
Overrides
MirrorTexture
public override Texture MirrorTexture { get; protected set; }
Property Value
Overrides
OptimalRenderFrameSize
public override Size2 OptimalRenderFrameSize { get; }
Property Value
Overrides
RenderFrameScaling
public override float RenderFrameScaling { get; set; }
Property Value
Type |
Description |
System.Single |
|
Overrides
RightHand
public override TouchController RightHand { get; }
Property Value
Overrides
State
public override DeviceState State { get; }
Property Value
Overrides
TrackedItems
public override TrackedItem[] TrackedItems { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Methods
Commit(CommandList, Texture)
public override void Commit(CommandList commandList, Texture renderFrame)
Parameters
Overrides
Draw(GameTime)
public override void Draw(GameTime gameTime)
Parameters
Overrides
Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32)
public override void Enable(GraphicsDevice device, GraphicsDeviceManager graphicsDeviceManager, bool requireMirror, int mirrorWidth, int mirrorHeight)
Parameters
Overrides
GetSpaceChangeRotation()
public Quaternion GetSpaceChangeRotation()
Returns
ReadEyeParameters(Eyes, Single, Single, ref Vector3, ref Matrix, Boolean, Boolean, 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
Type |
Name |
Description |
Eyes |
eye |
|
System.Single |
near |
|
System.Single |
far |
|
Vector3 |
cameraPosition |
|
Matrix |
cameraRotation |
|
System.Boolean |
ignoreHeadRotation |
|
System.Boolean |
ignoreHeadPosition |
|
Matrix |
view |
|
Matrix |
projection |
|
Overrides
Recenter()
public override void Recenter()
Overrides
Update(GameTime)
public override void Update(GameTime gameTime)
Parameters
Overrides
Extension Methods