Re: [AD] New graphics API, take 2 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On January 6, 2002 09:54 am, you wrote:
> In reply to Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx>:
> >Or even just something like:
> >
> >struct AL_BITMAP_CHUNK {
> > int id;
> > char thing[0];
> >};
> >
> >so 'chunk' can be casted to what ever it really is, but the lib shouldnt
> > care what it is nor how to destroy it.
> >
> >ie:
> >AL_DISPLAY_INFO *disp_info = (AL_DISPLAY_INFO *)bitmap->chunk;
>
> Then you can't have more than one chunk.
thats what the 'id' is for... it can be casted to something like AL_FUBAR_INFO
if that what 'id' says. you just have to keep track of what 'id' can be.
> BTW, I think you meant to reply to the list, not to me...
yup. I realized that :) already sent.
> Bye for now,
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net