Table of Contents

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

bool

Logger

public static Logger Logger

Field Value

Logger

UseGyroscope

Use the gyroscope of the device to simulate device orientation changes.

public bool UseGyroscope

Field Value

bool

Properties

ActualRenderFrameSize

public override Size2 ActualRenderFrameSize { get; protected set; }

Property Value

Size2

CanInitialize

public override bool CanInitialize { get; }

Property Value

bool

HeadAngularVelocity

public override Vector3 HeadAngularVelocity { get; }

Property Value

Vector3

HeadLinearVelocity

public override Vector3 HeadLinearVelocity { get; }

Property Value

Vector3

HeadPosition

public override Vector3 HeadPosition { get; }

Property Value

Vector3

HeadRotation

public override Quaternion HeadRotation { get; }

Property Value

Quaternion

LeftHand

public override TouchController LeftHand { get; }

Property Value

TouchController

MirrorTexture

public override Texture MirrorTexture { get; protected set; }

Property Value

Texture

OptimalRenderFrameSize

public override Size2 OptimalRenderFrameSize { get; }

Property Value

Size2

RenderFrameScaling

public override float RenderFrameScaling { get; set; }

Property Value

float

RightHand

public override TouchController RightHand { get; }

Property Value

TouchController

State

public override DeviceState State { get; }

Property Value

DeviceState

TrackedItems

public override TrackedItem[] TrackedItems { get; }

Property Value

TrackedItem[]

Methods

Commit(CommandList, Texture)

public override void Commit(CommandList commandList, Texture renderFrame)

Parameters

commandList CommandList
renderFrame 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 GraphicsDevice
graphicsDeviceManager GraphicsDeviceManager
requireMirror bool
mirrorWidth int
mirrorHeight int

GetSpaceChangeRotation()

public Quaternion GetSpaceChangeRotation()

Returns

Quaternion

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 Eyes
near float
far float
cameraPosition Vector3
cameraRotation Matrix
ignoreHeadRotation bool
ignoreHeadPosition bool
view Matrix
projection Matrix

Recenter()

public override void Recenter()

Update(GameTime)

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime