Esempio n. 1
0
File: ovr.go Progetto: postfix/ovr
func (hmd *Hmd) BeginFrameTiming(frameIndex uint) FrameTiming {
	return FrameTiming(C.ovrHmd_BeginFrameTiming(hmd.hmdRef, C.uint(frameIndex)))
}
Esempio n. 2
0
File: ovr.go Progetto: 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)))
}