Re: [AD] object oriented AL_SYSTEM

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


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





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