Search
|
These functions are declared in the main Allegro header file:
ALLEGRO_STATE
Opaque type which is passed to al_store_state/al_restore_state. The various state kept internally by Allegro can be displayed like this:
In general, the only real global state is the active system driver. All other global state is per-thread, so if your application has multiple separate threads they never will interfere with each other. (Except if there are objects accessed by multiple threads of course. Usually you want to minimize that though and for the remaining cases use synchronization primitives described in the threads section or events described in the events section to control inter-thread communication.) ALLEGRO_STATE_FLAGS
Flags which can be passed to al_store_state/al_restore_state as bit combinations. The following flags store or restore settings corresponding to the following al_set_/al_get_ calls:
al_restore_state
Restores part of the state of the current thread from the given ALLEGRO_STATE object. See also: al_store_state, ALLEGRO_STATE_FLAGS al_store_state
Stores part of the state of the current thread in the given ALLEGRO_STATE objects. The flags parameter can take any bit-combination of the flags described under ALLEGRO_STATE_FLAGS. See also: al_restore_state al_get_errno
Some Allegro functions will set an error number as well as returning an error code. Call this function to retrieve the last error number set for the calling thread. |
Last updated: 2010-05-26 10:53:30 UTC