Re: [AD] variadic al_create_queue

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


The alternative is to have a set of flags to register the common
queues (keyboard/mouse/display)  e.g.
al_register_queues(ALLEGRO_KEYBOARD_QUEUE|ALLEGRO_DISPLAY_QUEUE);

(ALLEGRO_DISPLAY_QUEUE would automatically register any subsequently
created displays)

Pete

On Wed, Aug 27, 2008 at 11:21 AM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> What you do you think about a variant of al_create_queue() which takes a
> list of event sources to register?
>
>    queue = al_create_queue_register(display, al_get_keyboard(),
>        al_get_mouse(), timer, NULL);
>
> Might reduce boilerplate a bit.
>
> Peter
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>




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