al_store_state
void al_store_state(ALLEGRO_STATE *state, int flags)
Introduced in 5.0.0
Stores part of the state of the current thread in the given ALLEGRO_STATE objects. The flags parameter can take any bit-combination of these flags:
- ALLEGRO_STATE_NEW_DISPLAY_PARAMETERS - new_display_format, new_display_refresh_rate, new_display_flags
- ALLEGRO_STATE_NEW_BITMAP_PARAMETERS - new_bitmap_format, new_bitmap_flags
- ALLEGRO_STATE_DISPLAY - current_display
- ALLEGRO_STATE_TARGET_BITMAP - target_bitmap
- ALLEGRO_STATE_BLENDER - blender
- ALLEGRO_STATE_TRANSFORM - current_transformation
- ALLEGRO_STATE_NEW_FILE_INTERFACE - new_file_interface
- ALLEGRO_STATE_BITMAP - same as ALLEGRO_STATE_NEW_BITMAP_PARAMETERS and ALLEGRO_STATE_TARGET_BITMAP
- ALLEGRO_STATE_ALL - all of the above
See also: al_restore_state, ALLEGRO_STATE
Examples: ex_blend2, ex_blend_bench, ex_blit, ex_clip, ex_draw, ex_logo, ex_threads
Most helpful discussions:
- [A5] What's the current, proper way to use both 2-D and 3-D functions (1)
- [A5] Just Sharing a simple screen shot function (1)
- Allegro5 and OpenGL. Problem with drawing Allegro primitives
- [Help]Using Physfs for DataFiles
- Draw to bitmap failing
- Storing the clipping rectangle with al_store_state
- git format-patch: troubles with white space trailing
- video & physfs problems in the same file
- Good programmig practice light effects
- KrampusHack 2016
Other recent discussions:
- Lightning with some light points
- Mask / combine bitmaps
- Just bored... ;)
- Mode 7 graphics in Allegro 5...
- Scaled font print call?
- [a5] al_create_bitmap() not creating mipmap in OPENGL
- al_clone_bitmap() of backbuffer gives bad results with OGL
- Is this me or Allegro?!?
- Combining Allegro 5.1.8 with OpenGL culling problems
- Al_save_bitmap only saves a blank png