Example #1
0
File: ovr.go Project: postfix/ovr
func (hmd *Hmd) GetFrameTiming(frameIndex uint) FrameTiming {
	return FrameTiming(C.ovrHmd_GetFrameTiming(hmd.hmdRef, C.uint(frameIndex)))
}
Example #2
0
File: ovr.go Project: krux02/libovr
// Thread-safe timing function for the main thread. Caller should increment frameIndex
// with every frame and pass the index to RenderThread for processing.
func (this *Hmd) GetFrameTiming(frameIndex int) FrameTiming {
	return frameTiming(C.ovrHmd_GetFrameTiming(this.cptr(), C.uint(frameIndex)))
}