1exupdate(3)                     Allegro manual                     exupdate(3)
2
3
4

NAME

6       exupdate  - Supporting different screen update methods in a single pro‐
7       gram. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       Example exupdate
14

DESCRIPTION

16       This program demonstrates how to support double buffering,  page  flip‐
17       ping,  and triple buffering as options within a single program, and how
18       to make things run at a constant rate no matter what the speed of  your
19       computer. You have to use this example from the command line to specify
20       as first parameter a number which represents the type of  video  update
21       you  want: 1 for double buffering with memory bitmaps, 2 for page flip‐
22       ping, 3 for triple buffering and 4 for  double  buffering  with  system
23       bitmaps.  After this, a dialog allows you to select a screen resolution
24       and finally you will see a kaleidoscopic animation, along with a frames
25       per second counter on the top left of the screen.
26
27

SEE ALSO

29       BITMAP(3),    END_OF_FUNCTION(3),   END_OF_MAIN(3),   LOCK_FUNCTION(3),
30       LOCK_VARIABLE(3), PALETTE(3),  SCREEN_H(3),  SCREEN_W(3),  acquire_bit‐
31       map(3),  allegro_error(3),  allegro_init(3),  allegro_message(3),  bit‐
32       map_color_depth(3), blit(3),  clear_bitmap(3),  create_bitmap(3),  cre‐
33       ate_system_bitmap(3),    create_video_bitmap(3),    desktop_palette(3),
34       destroy_bitmap(3), enable_triple_buffer(3), fixcos(3),  fixed(3),  fix‐
35       mul(3),  fixsin(3),  fixtoi(3),  font(3),  ftofix(3), generate_332_pal‐
36       ette(3), gfx_capabilities(3), gfx_mode_select_ex(3), install_int_ex(3),
37       install_keyboard(3), install_mouse(3), install_timer(3), keypressed(3),
38       line(3),      makecol(3),      poll_scroll(3),       release_bitmap(3),
39       request_video_bitmap(3),         screen(3),         set_color_depth(3),
40       set_gfx_mode(3), set_palette(3),  show_video_bitmap(3),  textout_ex(3),
41       textprintf_ex(3), triangle(3), vsync(3), xor_mode(3)
42
43
44
45Allegro                          version 4.4.3                     exupdate(3)
Impressum