Class VRDeviceSystem
- Namespace
- Stride.VirtualReality
- Assembly
- Stride.VirtualReality.dll
public class VRDeviceSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
objectVRDeviceSystem
- Implements
- Inherited Members
- Extension Methods
Constructors
VRDeviceSystem(IServiceRegistry)
public VRDeviceSystem(IServiceRegistry registry)
Parameters
registryIServiceRegistry
Fields
MirrorHeight
public int MirrorHeight
Field Value
MirrorWidth
public int MirrorWidth
Field Value
PreferredApis
public VRApi[] PreferredApis
Field Value
- VRApi[]
PreferredScalings
public Dictionary<VRApi, float> PreferredScalings
Field Value
PreviousCameraProjection
public Matrix PreviousCameraProjection
Field Value
PreviousUseCustomProjectionMatrix
public bool PreviousUseCustomProjectionMatrix
Field Value
PreviousUseCustomViewMatrix
public bool PreviousUseCustomViewMatrix
Field Value
RequestPassthrough
public bool RequestPassthrough
Field Value
RequireMirror
public bool RequireMirror
Field Value
ResolutionScale
public float ResolutionScale
Field Value
Properties
Device
public VRDevice Device { get; }
Property Value
Methods
Destroy()
Disposes the object's resources.
protected override void Destroy()
Remarks
Override in a derived class to implement disposal logic specific to it.
This method is automatically called whenever a call to Dispose() (or to Release()) has decreased the internal reference count to zero, meaning no other objects (hopefully) hold a reference to this one and its resources can be safely released.
Draw(GameTime)
Draws the Game Component.
public override void Draw(GameTime gameTime)
Parameters
gameTimeGameTimeThe current timing information.
Update(GameTime)
This method is called when this game component is updated.
public override void Update(GameTime gameTime)
Parameters
gameTimeGameTimeThe current timing.