Beispiel #1
0
		void TimerEvent::stop(void)
		{
			RAGE_CHECK_DISPOSED(disposed);

			if ((timer != nullptr) && al_get_timer_started(timer))
				al_stop_timer(timer);
		}
Beispiel #2
0
		void TimerEvent::set_count(int64_t count)
		{
			RAGE_CHECK_DISPOSED(disposed);

			if ((timer != nullptr) && al_get_timer_started(timer))
				al_set_timer_count(timer, count);
		}
Beispiel #3
0
		bool TimerEvent::started(void)
		{
			RAGE_CHECK_DISPOSED_RET(disposed, false);

			if (timer != nullptr)
				return al_get_timer_started(timer);
			else 
				return false;
		}
Beispiel #4
0
void
stop_video_effect (void)
{
  ALLEGRO_BITMAP *screen = mr.cell[0][0].screen;

  if (! al_get_timer_started (video_timer)) return;
  video_effect.type = VIDEO_NO_EFFECT;
  al_stop_timer (video_timer);
  al_set_timer_count (video_timer, 0);
  drop_all_events_from_source
    (event_queue, get_timer_event_source (video_timer));
  clear_bitmap (screen, BLACK);
  draw_bitmap (effect_buffer, screen, 0, 0, 0);
  effect_counter = 0;
}
Beispiel #5
0
 /**
     Checks if the timer is started.
     @return true if started.
  */
 bool isStarted() const {
     return al_get_timer_started(get());
 }
Beispiel #6
0
bool
is_video_effect_started (void)
{
  return al_get_timer_started (video_timer);
}