internal FrameTiming(FrameTiming_Raw raw) { this.DeltaSeconds = raw.DeltaSeconds; this.ThisFrameSeconds = raw.ThisFrameSeconds; this.TimewarpPointSeconds = raw.TimewarpPointSeconds; this.NextFrameSeconds = raw.NextFrameSeconds; this.ScanoutMidpointSeconds = raw.ScanoutMidpointSeconds; this.EyeScanoutSeconds = new double[2] { raw.EyeScanoutSeconds_0, raw.EyeScanoutSeconds_1 }; }
internal FrameTiming(FrameTiming_Raw raw) { this.DeltaSeconds = raw.DeltaSeconds; this.ThisFrameSeconds = raw.ThisFrameSeconds; this.TimewarpPointSeconds = raw.TimewarpPointSeconds; this.NextFrameSeconds = raw.NextFrameSeconds; this.ScanoutMidpointSeconds = raw.ScanoutMidpointSeconds; this.EyeScanoutSeconds = new double[2] { raw.EyeScanoutSeconds_0, raw.EyeScanoutSeconds_1 }; }
public FrameTiming BeginFrameTiming(uint frameIndex) { FrameTiming_Raw raw = ovrHmd_BeginFrameTiming(this._hmd, frameIndex); return(new FrameTiming(raw)); }