Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DummyDevice Class

    Namespace: Stride.VirtualReality
    Assembly: Stride.VirtualReality.dll
    System.Object → VRDevice → DummyDevice
    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
    Type Name Description
    IServiceRegistry services
    | Improve this Doc View Source

    Fields


    BuildMirror

    If true, build the mirror view.

    public bool BuildMirror
    Field Value
    Type Description
    System.Boolean

    Logger

    public static Logger Logger
    Field Value
    Type Description
    Logger

    UseGyroscope

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

    public bool UseGyroscope
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Properties


    ActualRenderFrameSize

    public override Size2 ActualRenderFrameSize { get; protected set; }
    Property Value
    Type Description
    Size2
    Overrides
    VRDevice.ActualRenderFrameSize

    CanInitialize

    public override bool CanInitialize { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    VRDevice.CanInitialize

    HeadAngularVelocity

    public override Vector3 HeadAngularVelocity { get; }
    Property Value
    Type Description
    Vector3
    Overrides
    VRDevice.HeadAngularVelocity

    HeadLinearVelocity

    public override Vector3 HeadLinearVelocity { get; }
    Property Value
    Type Description
    Vector3
    Overrides
    VRDevice.HeadLinearVelocity

    HeadPosition

    public override Vector3 HeadPosition { get; }
    Property Value
    Type Description
    Vector3
    Overrides
    VRDevice.HeadPosition

    HeadRotation

    public override Quaternion HeadRotation { get; }
    Property Value
    Type Description
    Quaternion
    Overrides
    VRDevice.HeadRotation

    LeftHand

    public override TouchController LeftHand { get; }
    Property Value
    Type Description
    TouchController
    Overrides
    VRDevice.LeftHand

    MirrorTexture

    public override Texture MirrorTexture { get; protected set; }
    Property Value
    Type Description
    Texture
    Overrides
    VRDevice.MirrorTexture

    OptimalRenderFrameSize

    public override Size2 OptimalRenderFrameSize { get; }
    Property Value
    Type Description
    Size2
    Overrides
    VRDevice.OptimalRenderFrameSize

    RenderFrameScaling

    public override float RenderFrameScaling { get; set; }
    Property Value
    Type Description
    System.Single
    Overrides
    VRDevice.RenderFrameScaling

    RightHand

    public override TouchController RightHand { get; }
    Property Value
    Type Description
    TouchController
    Overrides
    VRDevice.RightHand

    State

    public override DeviceState State { get; }
    Property Value
    Type Description
    DeviceState
    Overrides
    VRDevice.State

    TrackedItems

    public override TrackedItem[] TrackedItems { get; }
    Property Value
    Type Description
    TrackedItem[]
    Overrides
    VRDevice.TrackedItems
    | Improve this Doc View Source

    Methods


    Commit(CommandList, Texture)

    public override void Commit(CommandList commandList, Texture renderFrame)
    Parameters
    Type Name Description
    CommandList commandList
    Texture renderFrame
    Overrides
    VRDevice.Commit(CommandList, Texture)

    Draw(GameTime)

    public override void Draw(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime
    Overrides
    VRDevice.Draw(GameTime)

    Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32)

    public override void Enable(GraphicsDevice device, GraphicsDeviceManager graphicsDeviceManager, bool requireMirror, int mirrorWidth, int mirrorHeight)
    Parameters
    Type Name Description
    GraphicsDevice device
    GraphicsDeviceManager graphicsDeviceManager
    System.Boolean requireMirror
    System.Int32 mirrorWidth
    System.Int32 mirrorHeight
    Overrides
    VRDevice.Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32)

    GetSpaceChangeRotation()

    public Quaternion GetSpaceChangeRotation()
    Returns
    Type Description
    Quaternion

    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
    VRDevice.ReadEyeParameters(Eyes, Single, Single, ref Vector3, ref Matrix, Boolean, Boolean, out Matrix, out Matrix)

    Recenter()

    public override void Recenter()
    Overrides
    VRDevice.Recenter()

    Update(GameTime)

    public override void Update(GameTime gameTime)
    Parameters
    Type Name Description
    GameTime gameTime
    Overrides
    VRDevice.Update(GameTime)

    Inherited Members

    VRDevice.Game
    VRDevice.VRApi
    VRDevice.ViewScaling
    VRDevice.SupportsOverlays
    VRDevice.CreateOverlay(Int32, Int32, Int32, Int32)
    VRDevice.ReleaseOverlay(VROverlay)
    VRDevice.SetTrackingSpace(TrackingSpace)
    VRDevice.Dispose()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation