Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Storing the clipping rectangle with al_store_state

This thread is locked; no one can reply to it. rss feed Print
Storing the clipping rectangle with al_store_state
neo_en2
Member #17,069
April 2019

Hi,
There is a way to store the clipping rectangle information with al_store_state?
Should this be a nice feature to introduce?

Edgar Reynaldo
Member #8,592
May 2007
avatar

If you read al_store_state, you can see that it does indeed store the clipping rectangle.

ALLEGRO_STATE s;
al_store_state(&s, ALLEGRO_STATE_TARGET_BITMAP);
...
al_restore_state(&s);

Go to: