VRDevice Class
Namespace: Stride.VirtualReality
Assembly: Stride.VirtualReality.dll
System.Object →
VRDevice
public abstract class VRDevice : IDisposable
Name |
Description |
Constructors
|
|
VRDevice() |
|
Properties
|
|
ActualRenderFrameSize |
|
|
CanInitialize |
|
|
Game |
|
|
HeadAngularVelocity |
|
|
HeadLinearVelocity |
|
|
HeadPosition |
|
|
HeadRotation |
|
|
LeftHand |
|
|
MirrorTexture |
|
|
OptimalRenderFrameSize |
|
|
RenderFrameScaling |
|
|
RightHand |
|
|
State |
|
|
SupportsOverlays |
|
|
TrackedItems |
|
|
ViewScaling |
Allows you to scale the view, effectively it will change the size of the player in respect to the world, turning it into a giant or a tiny ant.
|
|
VRApi |
|
Methods
|
|
Commit(CommandList, Texture) |
|
|
CreateOverlay(Int32, Int32, Int32, Int32) |
|
|
Dispose() |
|
|
Draw(GameTime) |
|
|
Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32) |
|
|
ReadEyeParameters(Eyes, Single, Single, ref Vector3, ref Matrix, Boolean, Boolean, out Matrix, out Matrix) |
|
|
Recenter() |
|
|
ReleaseOverlay(VROverlay) |
|
|
SetTrackingSpace(TrackingSpace) |
|
|
Update(GameTime) |
|
|
Improve this Doc
View Source
Constructors
VRDevice()
|
Improve this Doc
View Source
Properties
ActualRenderFrameSize
public abstract Size2 ActualRenderFrameSize { get; protected set; }
Property Value
CanInitialize
public abstract bool CanInitialize { get; }
Property Value
Type |
Description |
System.Boolean |
|
Game
public GameBase Game { get; }
Property Value
HeadAngularVelocity
public abstract Vector3 HeadAngularVelocity { get; }
Property Value
HeadLinearVelocity
public abstract Vector3 HeadLinearVelocity { get; }
Property Value
HeadPosition
public abstract Vector3 HeadPosition { get; }
Property Value
HeadRotation
public abstract Quaternion HeadRotation { get; }
Property Value
LeftHand
public abstract TouchController LeftHand { get; }
Property Value
MirrorTexture
public abstract Texture MirrorTexture { get; protected set; }
Property Value
OptimalRenderFrameSize
public abstract Size2 OptimalRenderFrameSize { get; }
Property Value
RenderFrameScaling
public abstract float RenderFrameScaling { get; set; }
Property Value
Type |
Description |
System.Single |
|
RightHand
public abstract TouchController RightHand { get; }
Property Value
State
public abstract DeviceState State { get; }
Property Value
SupportsOverlays
public bool SupportsOverlays { get; protected set; }
Property Value
Type |
Description |
System.Boolean |
|
TrackedItems
public abstract TrackedItem[] TrackedItems { get; }
Property Value
ViewScaling
Allows you to scale the view, effectively it will change the size of the player in respect to the world, turning it into a giant or a tiny ant.
public float ViewScaling { get; set; }
Property Value
Type |
Description |
System.Single |
|
VRApi
public VRApi VRApi { get; protected set; }
Property Value
|
Improve this Doc
View Source
Methods
Commit(CommandList, Texture)
public abstract void Commit(CommandList commandList, Texture renderFrame)
Parameters
CreateOverlay(Int32, Int32, Int32, Int32)
public virtual VROverlay CreateOverlay(int width, int height, int mipLevels, int sampleCount)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Int32 |
mipLevels |
|
System.Int32 |
sampleCount |
|
Returns
Dispose()
public virtual void Dispose()
Draw(GameTime)
public abstract void Draw(GameTime gameTime)
Parameters
Enable(GraphicsDevice, GraphicsDeviceManager, Boolean, Int32, Int32)
public abstract void Enable(GraphicsDevice device, GraphicsDeviceManager graphicsDeviceManager, bool requireMirror, int mirrorWidth, int mirrorHeight)
Parameters
ReadEyeParameters(Eyes, Single, Single, ref Vector3, ref Matrix, Boolean, Boolean, out Matrix, out Matrix)
public abstract 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 |
|
Recenter()
public virtual void Recenter()
ReleaseOverlay(VROverlay)
public virtual void ReleaseOverlay(VROverlay overlay)
Parameters
SetTrackingSpace(TrackingSpace)
public virtual void SetTrackingSpace(TrackingSpace space)
Parameters
Update(GameTime)
public abstract void Update(GameTime gameTime)
Parameters
Extension Methods