Re: [AD] public state store/restore API

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed, September 3, 2008 9:57 am, Elias Pschernig said:
> We briefly talked about this in #allegro-dev, so I made a patch.
> It's
> simply two functions:
>
> void al_store_state(ALLEGRO_STATE *state, int flags);
> void al_restore_state(ALLEGRO_STATE *state, int flags);
[snip]
> So not terribly long either. What does everyone think?

I think it's a good idea. Does your patch also have flags for bitmap
 and display creation, and target bitmap? Those are all thing I've
done manually a lot in a game I'm making. This function would make
that much cleaner and easier.

Also, I believe some of the Allegro internals and using the push/pop
stuff quite a bit, so it would be a nicer replacement for those.

Trent :{)>




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/