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)
- KrampusHack 2016
- 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
Other recent discussions:
- Is this me or Allegro?!?
- Combining Allegro 5.1.8 with OpenGL culling problems
- Al_save_bitmap only saves a blank png
- Load bitmap from zip file
- [A5] Exempt Bitmap from Transform
- al_save_bitmap not working!
- Developing in Windows, Need a Linux port
- Bitmaps and multi-threading
- al_autocrop_bitmap() ?
- Low quality in background image.