C# Class Unity.OsvrRenderManager

Inheritance: MonoBehaviour
显示文件 Open project: VirsixInc/VRCubeSword

Public Methods

Method Description
CreateRenderManager ( OSVR clientContext ) : int
ExitRenderManager ( ) : void
GetEyeProjectionMatrix ( int eye ) : Matrix4x4
GetEyeViewport ( int eye ) : OSVR.ClientKit.Viewport
GetRenderEventFunction ( ) : IntPtr
GetRenderManagerEyePose ( int eye ) : OSVR.ClientKit.Pose3
InitRenderManager ( ) : int
IsRenderManagerSupported ( ) : bool
IsUnityVersionSupported ( ) : bool
SetEyeColorBuffer ( IntPtr colorBuffer, int eye ) : void
SetFarClippingPlaneDistance ( float far ) : void
SetIPDMeters ( float ipd ) : void
SetNearClippingPlaneDistance ( float near ) : void

Private Methods

Method Description
CreateRenderManagerFromUnity ( OSVR ctx ) : Byte
DebugWrapper ( string log ) : void
GetEyePose ( int eye ) : OSVR.ClientKit.Pose3
GetProjectionMatrix ( int eye ) : OSVR_ProjectionMatrix
GetRenderEventFunc ( ) : IntPtr
GetViewport ( int eye ) : OSVR_ViewportDescription
LinkDebug ( [ debugCal ) : void
PerspectiveOffCenter ( float left, float right, float bottom, float top, float near, float far ) : Matrix4x4
SetColorBufferFromUnity ( System texturePtr, int eye ) : void
SetFarClipDistance ( double farClipPlaneDistance ) : void
SetIPD ( double ipdMeters ) : void
SetNearClipDistance ( double nearClipPlaneDistance ) : void
ShutdownRenderManager ( ) : void

Method Details

CreateRenderManager() public method

public CreateRenderManager ( OSVR clientContext ) : int
clientContext OSVR
return int

ExitRenderManager() public method

public ExitRenderManager ( ) : void
return void

GetEyeProjectionMatrix() public method

public GetEyeProjectionMatrix ( int eye ) : Matrix4x4
eye int
return Matrix4x4

GetEyeViewport() public method

public GetEyeViewport ( int eye ) : OSVR.ClientKit.Viewport
eye int
return OSVR.ClientKit.Viewport

GetRenderEventFunction() public method

public GetRenderEventFunction ( ) : IntPtr
return IntPtr

GetRenderManagerEyePose() public method

public GetRenderManagerEyePose ( int eye ) : OSVR.ClientKit.Pose3
eye int
return OSVR.ClientKit.Pose3

InitRenderManager() public method

public InitRenderManager ( ) : int
return int

IsRenderManagerSupported() public method

public IsRenderManagerSupported ( ) : bool
return bool

IsUnityVersionSupported() public method

public IsUnityVersionSupported ( ) : bool
return bool

SetEyeColorBuffer() public method

public SetEyeColorBuffer ( IntPtr colorBuffer, int eye ) : void
colorBuffer IntPtr
eye int
return void

SetFarClippingPlaneDistance() public method

public SetFarClippingPlaneDistance ( float far ) : void
far float
return void

SetIPDMeters() public method

public SetIPDMeters ( float ipd ) : void
ipd float
return void

SetNearClippingPlaneDistance() public method

public SetNearClippingPlaneDistance ( float near ) : void
near float
return void