Re: [AD] object oriented AL_SYSTEM |
[ 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] object oriented AL_SYSTEM
- From: Elias Pschernig <elias@xxxxxxxxxx>
- Date: Mon, 28 Aug 2006 11:21:52 +0200
On Mon, 2006-08-28 at 19:19 +1000, Peter Wang wrote:
> >
> > All without the need of accessing a void * pointer (like is currently
> > done e.g. with BITMAP and FONT, possible others), and _xwin (which
> > already is a similar idea) would be a proper object instead of just
> > grouped global variables.
>
> I find the casting rather tedious, and you're losing out on some of C's
> typechecking abilities (a problem that doesn't exist with the grouped
> globals), but whatever.
In the case of the new AL_DISPLAY, there will be multiple _xwin structs,
so that can't work anymore. Only alternative I see would be a void *
pointer from each AL_DISPLAY, so you still do a cast.
--
Elias Pschernig