Example #1
0
func (t *Timer) SetSpeed(newSpeedSecs float64) {
	C.al_set_timer_speed((*C.ALLEGRO_TIMER)(unsafe.Pointer(t)), C.double(newSpeedSecs))
}
Example #2
0
File: al.go Project: beoran/algo
// Sets the speed of the timer.
func (self *Timer) SetSpeed(speed_secs float64) {
	C.al_set_timer_speed(self.handle, C.double(speed_secs))
}
Example #3
0
func (t *Timer) SetSpeed(speed float64) {

	C.al_set_timer_speed((*C.ALLEGRO_TIMER)(t), C.double(speed))

}