コード例 #1
0
ファイル: timer.go プロジェクト: bluepeppers/allegro
func CreateTimer(speed_secs float64) *Timer {
	var t *Timer

	t = (*Timer)(C.al_create_timer(C.double(speed_secs)))

	return t
}
コード例 #2
0
ファイル: al.go プロジェクト: beoran/algo
// Creates a timer wih the given tick speed.
func CreateTimer(speed_secs float64) *Timer {
	return wrapTimer(C.al_create_timer(C.double(speed_secs)))
}
コード例 #3
0
ファイル: timer.go プロジェクト: b1naryth1ef/allegro
func CreateTimer(speedSecs float64) *Timer {
	return (*Timer)(unsafe.Pointer(C.al_create_timer(C.double(speedSecs))))
}