Exemplo n.º 1
0
Arquivo: time.go Projeto: godispy/glfw
//SetTime sets the value of the GLFW timer. It then continues to count up from
//that value.
//
//The resolution of the timer is system dependent, but is usually on the order
//of a few micro- or nanoseconds. It uses the highest-resolution monotonic time
//source on each supported platform.
func SetTime(time float64) {
	C.glfwSetTime(C.double(time))
}
Exemplo n.º 2
0
Arquivo: glfw.go Projeto: andrebq/glfw
// SetTime sets the current time of the high precision timer to the specified
// time. Subsequent calls to glfw.Time will be relative to this time. The time
// is given in seconds.
func SetTime(t float64) { C.glfwSetTime(C.double(t)) }
Exemplo n.º 3
0
Arquivo: time.go Projeto: godispy/glfw
// SetTime sets the value of the GLFW timer. It then continues to count up from
// that value.
//
// The resolution of the timer is system dependent, but is usually on the order
// of a few micro- or nanoseconds. It uses the highest-resolution monotonic time
// source on each supported platform.
func SetTime(time float64) {
	C.glfwSetTime(C.double(time))
	panicError()
}