Re: [AD] user data

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


> Yes, I am at it again.
> I think a marvellous idea would be to include a user data
> (most probably a void*) in every structure of note, to allow
> the user to store whatever she wants in those. Structures
> that I particularly target are BITMAP and DIALOG (*yes*, DIALOG).
> Such a field would NEVER be touched by Allegro. Before telling
> me that it's useless, remember that Allegro is in C, not C++.
> Any agreements ? :)

Maybe for BITMAPS, but DIALOG already has dp,dp2 and dp3.  These are quite
sufficient I find.

if I need more data then one of these pointers points to an extra structure.

Matt




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