[AD] Adding save/load font functions |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi,
I think it would be a good idea to have save/load FONT functions in Allegro.
Although for most cases it'll default to load_datafile_object(), it would
help add-ons that use their own special font formats.
For example, AllegroGL does some heavy computations on fonts when doing a
conversion (and I'm adding some more to save texture space). Being able to
save/load the intermediary results (saved in the FONT structure) via a hook
would be very helpful towards reducing load times on AllegroGL programs.
Sure, AllegroGL can have it's own API for this, but since it manipulates
Allegro FONTs anyway, I thought it would be a good idea to have this inside
Allegro.
It could also be helpful for other add-ons, and also would serve to complete
the API - we already have load/save pairs for just about everything.
--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/