iOS/buildlibs/armv7/allegro-4.4.2/demos/skater/source/framewk.c
/*
   Draws the current state or transition animation to the backbuffer
   and flips the page.

   Parameters:
      none

   Returns:
      none
*/
Draws the current state or transition animation to the backbuffer
and flips the page.

none

none
Draws the current state or transition animation to the backbuffer and flips the page . none none
void draw_framework(void)
{
   acquire_bitmap(update_driver.get_canvas());
   if (transition) {
      draw_transition(update_driver.get_canvas(), transition);
   } else {
      if (current_state != DEMO_STATE_EXIT) {
         state[current_state].draw(update_driver.get_canvas());
      }
   }
   if (display_framerate) {
      draw_fps(fps, update_driver.get_canvas(), font, 0, 0,
               makecol(255, 255, 255), "%d FPS");
   }
   release_bitmap(update_driver.get_canvas());
   update_driver.draw();
}
void draw_framework ( void ) { acquire_bitmap ( update_driver . get_canvas ( ) ) ; if ( transition ) { draw_transition ( update_driver . get_canvas ( ) , transition ) ; } else { if ( current_state != DEMO_STATE_EXIT ) { state [ current_state ] . draw ( update_driver . get_canvas ( ) ) ; } } if ( display_framerate ) { draw_fps ( fps , update_driver . get_canvas ( ) , font , 0 , 0 , makecol ( 255 , 255 , 255 ) , " " ) ; } release_bitmap ( update_driver . get_canvas ( ) ) ; update_driver . draw ( ) ; }
Draws the current state or transition animation to the backbuffer
and flips the page.
Draws the current state or transition animation to the backbuffer and flips the page .
/* Before drawing to the backbuffer we must acquire it - just in case. */ /* Draw either the current state or the transition animation if we're
      in between states. */ /* DEMO_STATE_EXIT is a special case and doesn't eqate to and actual
         state that can be drawn. */ /* Draw the current framerate if required. */ /* Release the previously acquired canvas bitmap (backbuffer). */ /* Finally make the update driver flip the page so it becomes visible on
      the screen, however it may go about actually doing it. */