1exswitch(3) Allegro manual exswitch(3)
2
3
4
6 exswitch - Controlling the console switch mode for background running.
7 Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 Example exswitch
14
16 This program shows how to control the console switching mode, and let
17 your program run in the background. These functions don't apply to
18 every platform and driver, for example you can't control the switching
19 mode from a DOS program.
20
21 Yes, I know the fractal drawing is very slow: that's the point! This
22 is so you can easily check whether it goes on working in the background
23 after you switch away from the app.
24
25 Depending on the type of selected switching mode, you will see whether
26 the contents of the screen are preserved or not.
27
28
30 BITMAP(3), END_OF_FUNCTION(3), END_OF_MAIN(3), LOCK_FUNCTION(3),
31 LOCK_VARIABLE(3), PALETTE(3), SCREEN_H(3), SCREEN_W(3), acquire_bit‐
32 map(3), acquire_screen(3), allegro_error(3), allegro_exit(3), alle‐
33 gro_init(3), allegro_message(3), bitmap_color_depth(3), blit(3),
34 clear_to_color(3), create_sub_bitmap(3), desktop_palette(3),
35 destroy_bitmap(3), font(3), get_display_switch_mode(3),
36 gfx_mode_select_ex(3), install_int(3), install_keyboard(3),
37 install_mouse(3), install_timer(3), keypressed(3), makecol(3), pal‐
38 ette_color(3), putpixel(3), readkey(3), rectfill(3), release_bitmap(3),
39 release_screen(3), screen(3), set_color_depth(3), set_dis‐
40 play_switch_callback(3), set_display_switch_mode(3), set_gfx_mode(3),
41 set_palette(3), textout_centre_ex(3), textprintf_centre_ex(3)
42
43
44
45Allegro version 4.2.2 exswitch(3)