Re: [AD] public state store/restore API |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: "Coordination of admins/developers of the game programming library Allegro" <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] public state store/restore API
- From: "Trent Gamblin" <trent@xxxxxxxxxx>
- Date: Wed, 3 Sep 2008 10:20:06 -0600 (MDT)
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 :{)>