1ALLEGRO_STATE(3)           Library Functions Manual           ALLEGRO_STATE(3)
2
3
4

NAME

6       ALLEGRO_STATE
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              typedef struct ALLEGRO_STATE ALLEGRO_STATE;
12

DESCRIPTION

14       Opaque type which is passed to al_store_state(3)/al_restore_state(3).
15
16       The  various  state  kept  internally  by Allegro can be displayed like
17       this:
18
19                global
20                    active system driver
21                        current config
22                per thread
23                    new bitmap params
24                    new display params
25                    active file interface
26                    errno
27                    current blending mode
28                    current display
29                        deferred drawing
30                    current target bitmap
31                        current transformation
32                        current clipping rectangle
33                        bitmap locking
34
35       In general, the only real global state is  the  active  system  driver.
36       All other global state is per-thread, so if your application has multi‐
37       ple separate  threads  they  never  will  interfere  with  each  other.
38       (Except  if  there  are objects accessed by multiple threads of course.
39       Usually you want to minimize that though and for  the  remaining  cases
40       use  synchronization  primitives  described  in  the threads section or
41       events described in the events section to control inter-thread communi‐
42       cation.)
43
44
45
46Allegro reference manual                                      ALLEGRO_STATE(3)
Impressum