C# Class Gvr.Internal.BaseVRDevice

ファイルを表示 Open project: omgwtfgames/unity-cardboard-photosphere Class Usage Examples

Public Properties

Property Type Description
backButtonPressed bool
profileChanged bool
tilted bool
triggered bool

Protected Properties

Property Type Description
headPose MutablePose3D
leftEyeDistortedProjection UnityEngine.Matrix4x4
leftEyeDistortedViewport UnityEngine.Rect
leftEyeOrientation int
leftEyePose MutablePose3D
leftEyeUndistortedProjection UnityEngine.Matrix4x4
leftEyeUndistortedViewport UnityEngine.Rect
recommendedTextureSize Vector2
rightEyeDistortedProjection UnityEngine.Matrix4x4
rightEyeDistortedViewport UnityEngine.Rect
rightEyeOrientation int
rightEyePose MutablePose3D
rightEyeUndistortedProjection UnityEngine.Matrix4x4
rightEyeUndistortedViewport UnityEngine.Rect

Public Methods

Method Description
CreateStereoScreen ( ) : RenderTexture
Destroy ( ) : void
GetDevice ( ) : BaseVRDevice
GetEyePose ( GvrViewer eye ) : Pose3D
GetHeadPose ( ) : Pose3D
GetProjection ( GvrViewer eye, GvrViewer distortion = GvrViewer.Distortion.Distorted ) : Matrix4x4
GetViewport ( GvrViewer eye, GvrViewer distortion = GvrViewer.Distortion.Distorted ) : Rect
Init ( ) : void
OnApplicationQuit ( ) : void
OnFocus ( bool focus ) : void
OnLevelLoaded ( int level ) : void
OnPause ( bool pause ) : void
PostRender ( RenderTexture stereoScreen ) : void
Recenter ( ) : void
RequiresNativeDistortionCorrection ( ) : bool
SetDefaultDeviceProfile ( Uri uri ) : bool
SetDistortionCorrectionEnabled ( bool enabled ) : void
SetElectronicDisplayStabilizationEnabled ( bool enabled ) : void
SetNeckModelScale ( float scale ) : void
SetVRModeEnabled ( bool enabled ) : void
ShouldRecreateStereoScreen ( int curWidth, int curHeight ) : bool
ShowSettingsDialog ( ) : void
SupportsNativeDistortionCorrection ( List diagnostics ) : bool
SupportsNativeUILayer ( List diagnostics ) : bool
UpdateScreenData ( ) : void
UpdateState ( ) : void

Protected Methods

Method Description
BaseVRDevice ( ) : UnityEngine
ComputeEyesFromProfile ( ) : void

Private Methods

Method Description
MakeProjection ( float l, float t, float r, float b, float n, float f ) : Matrix4x4

Method Details

BaseVRDevice() protected method

protected BaseVRDevice ( ) : UnityEngine
return UnityEngine

ComputeEyesFromProfile() protected method

protected ComputeEyesFromProfile ( ) : void
return void

CreateStereoScreen() public method

public CreateStereoScreen ( ) : RenderTexture
return UnityEngine.RenderTexture

Destroy() public method

public Destroy ( ) : void
return void

GetDevice() public static method

public static GetDevice ( ) : BaseVRDevice
return BaseVRDevice

GetEyePose() public method

public GetEyePose ( GvrViewer eye ) : Pose3D
eye GvrViewer
return Pose3D

GetHeadPose() public method

public GetHeadPose ( ) : Pose3D
return Pose3D

GetProjection() public method

public GetProjection ( GvrViewer eye, GvrViewer distortion = GvrViewer.Distortion.Distorted ) : Matrix4x4
eye GvrViewer
distortion GvrViewer
return UnityEngine.Matrix4x4

GetViewport() public method

public GetViewport ( GvrViewer eye, GvrViewer distortion = GvrViewer.Distortion.Distorted ) : Rect
eye GvrViewer
distortion GvrViewer
return UnityEngine.Rect

Init() public abstract method

public abstract Init ( ) : void
return void

OnApplicationQuit() public method

public OnApplicationQuit ( ) : void
return void

OnFocus() public method

public OnFocus ( bool focus ) : void
focus bool
return void

OnLevelLoaded() public method

public OnLevelLoaded ( int level ) : void
level int
return void

OnPause() public method

public OnPause ( bool pause ) : void
pause bool
return void

PostRender() public abstract method

public abstract PostRender ( RenderTexture stereoScreen ) : void
stereoScreen UnityEngine.RenderTexture
return void

Recenter() public abstract method

public abstract Recenter ( ) : void
return void

RequiresNativeDistortionCorrection() public method

public RequiresNativeDistortionCorrection ( ) : bool
return bool

SetDefaultDeviceProfile() public method

public SetDefaultDeviceProfile ( Uri uri ) : bool
uri System.Uri
return bool

SetDistortionCorrectionEnabled() public abstract method

public abstract SetDistortionCorrectionEnabled ( bool enabled ) : void
enabled bool
return void

SetElectronicDisplayStabilizationEnabled() public abstract method

public abstract SetElectronicDisplayStabilizationEnabled ( bool enabled ) : void
enabled bool
return void

SetNeckModelScale() public abstract method

public abstract SetNeckModelScale ( float scale ) : void
scale float
return void

SetVRModeEnabled() public abstract method

public abstract SetVRModeEnabled ( bool enabled ) : void
enabled bool
return void

ShouldRecreateStereoScreen() public method

public ShouldRecreateStereoScreen ( int curWidth, int curHeight ) : bool
curWidth int
curHeight int
return bool

ShowSettingsDialog() public method

public ShowSettingsDialog ( ) : void
return void

SupportsNativeDistortionCorrection() public method

public SupportsNativeDistortionCorrection ( List diagnostics ) : bool
diagnostics List
return bool

SupportsNativeUILayer() public method

public SupportsNativeUILayer ( List diagnostics ) : bool
diagnostics List
return bool

UpdateScreenData() public abstract method

public abstract UpdateScreenData ( ) : void
return void

UpdateState() public abstract method

public abstract UpdateState ( ) : void
return void

Property Details

backButtonPressed public_oe property

public bool backButtonPressed
return bool

headPose protected_oe property

protected MutablePose3D headPose
return MutablePose3D

leftEyeDistortedProjection protected_oe property

protected Matrix4x4,UnityEngine leftEyeDistortedProjection
return UnityEngine.Matrix4x4

leftEyeDistortedViewport protected_oe property

protected Rect,UnityEngine leftEyeDistortedViewport
return UnityEngine.Rect

leftEyeOrientation protected_oe property

protected int leftEyeOrientation
return int

leftEyePose protected_oe property

protected MutablePose3D leftEyePose
return MutablePose3D

leftEyeUndistortedProjection protected_oe property

protected Matrix4x4,UnityEngine leftEyeUndistortedProjection
return UnityEngine.Matrix4x4

leftEyeUndistortedViewport protected_oe property

protected Rect,UnityEngine leftEyeUndistortedViewport
return UnityEngine.Rect

profileChanged public_oe property

public bool profileChanged
return bool

recommendedTextureSize protected_oe property

protected Vector2 recommendedTextureSize
return Vector2

rightEyeDistortedProjection protected_oe property

protected Matrix4x4,UnityEngine rightEyeDistortedProjection
return UnityEngine.Matrix4x4

rightEyeDistortedViewport protected_oe property

protected Rect,UnityEngine rightEyeDistortedViewport
return UnityEngine.Rect

rightEyeOrientation protected_oe property

protected int rightEyeOrientation
return int

rightEyePose protected_oe property

protected MutablePose3D rightEyePose
return MutablePose3D

rightEyeUndistortedProjection protected_oe property

protected Matrix4x4,UnityEngine rightEyeUndistortedProjection
return UnityEngine.Matrix4x4

rightEyeUndistortedViewport protected_oe property

protected Rect,UnityEngine rightEyeUndistortedViewport
return UnityEngine.Rect

tilted public_oe property

public bool tilted
return bool

triggered public_oe property

public bool triggered
return bool