C# Class OVRPluginEvent, Lucid-VR

Communicates with native plugin functions that run on the rendering thread.
Exibir arquivo Open project: UCSDVR/Lucid-VR Class Usage Examples

Public Methods

Method Description
Issue ( RenderEventType eventType ) : void

Immediately issues the given event.

IssueWithData ( RenderEventType eventType, int eventData ) : void

Create a data channel through the single 32-bit integer we are given to communicate with the plugin. Split the 32-bit integer event data into two separate "send-two-bytes" plugin events. Then issue the explicit event that makes use of the data.

Private Methods

Method Description
DecodeData ( int eventData ) : int
EncodeData ( int eventId, int eventData, int pos ) : int
EncodeType ( int eventType ) : int

Method Details

Issue() public static method

Immediately issues the given event.
public static Issue ( RenderEventType eventType ) : void
eventType RenderEventType
return void

IssueWithData() public static method

Create a data channel through the single 32-bit integer we are given to communicate with the plugin. Split the 32-bit integer event data into two separate "send-two-bytes" plugin events. Then issue the explicit event that makes use of the data.
public static IssueWithData ( RenderEventType eventType, int eventData ) : void
eventType RenderEventType
eventData int
return void