예제 #1
0
파일: ovr.go 프로젝트: postfix/ovr
func (hmd *Hmd) BeginFrameTiming(frameIndex uint) FrameTiming {
	return FrameTiming(C.ovrHmd_BeginFrameTiming(hmd.hmdRef, C.uint(frameIndex)))
}
예제 #2
0
파일: ovr.go 프로젝트: 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)))
}