/// <summary> /// Callback method: warning this may be called from a different thread than the rest of this class. /// </summary> /// <param name="pFlowVectors">PIN_OUT: See the file COMInterface.cs for the struct definition.</param> /// <returns>HRESULT</returns> int IVectorGrabberCB.BufferFlowVectors([In, MarshalAs(UnmanagedType.LPStruct)] PIN_OUT pFlowVectors) { try { // FIXME: use SharedMemory to communicate with XNA game //Replace flowvectors = new Replace(); //flowvectors.Body.RawFlowVectors = pFlowVectors; // new PIN_OUT(pFlowVectors); //_mainPort.Post(flowvectors); } catch (Exception ee) { LogInfo(LogGroups.Console, "BufferFlowVectors Exception: " + ee.Message); } return(0); }
public FlowVectorState() { _rawFlowVectors = new PIN_OUT(); }