示例#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)))
}