示例#1
0
文件: ovr.go 项目: postfix/ovr
func (hmd *Hmd) GetFrameTiming(frameIndex uint) FrameTiming {
	return FrameTiming(C.ovrHmd_GetFrameTiming(hmd.hmdRef, C.uint(frameIndex)))
}
示例#2
0
文件: ovr.go 项目: 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)))
}