Example #1
0
File: ovr.go Project: postfix/ovr
func (hmd *Hmd) BeginFrameTiming(frameIndex uint) FrameTiming {
	return FrameTiming(C.ovrHmd_BeginFrameTiming(hmd.hmdRef, C.uint(frameIndex)))
}
Example #2
0
File: ovr.go Project: krux02/libovr
// Called at the beginning of the frame on the Render Thread.
// Pass frameIndex == 0 if ovrHmd_GetFrameTiming isn't being used. Otherwise,
// pass the same frame index as was used for GetFrameTiming on the main thread.
func (hmd *Hmd) BeginFrameTiming(frameIndex int) FrameTiming {
	return frameTiming(C.ovrHmd_BeginFrameTiming(hmd.cptr(), C.uint(frameIndex)))
}