Re: AW: [AD] Paletted Bitmap Grabber PlugIn & Allegro Extension |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Jörg Rüppel wrote:
>
> Ok, I see your point. I tried to implement it as grabber-plugin-only without
> altering allegro.h. I put the PAL_BITMAP struct into the OBS code and
> everything is fine. BUT: The grabber now knows how to grab and save this
> file. But when I load an already stored DATAFILE which contains such an
> object, the grabber doesn't know how to handle this and treats it as binary!
[snip]
I think this is what you need:
[From allegro.txt]
void register_datafile_object(int id, void *(*load)(PACKFILE *f, long
size),
void (*destroy)(void *data));
Used to add custom object types, specifying functions to load and
destroy
objects of this type. See grabber.txt for more information.
--
- Robert J Ohannessian