Re: [AD] multiple windows |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Cool!
That was the so-long awaited (at least for me)
"multiple monitors" feature (well, multiple windows
would be great also :)
Kind regards,
Hugo Caro
Gaming Software Developer
--- AJ <aj@xxxxxxxxxx> escribió:
> I like it.
>
>
>
> Elias Pschernig wrote:
> > I'm just playing around with a minimal display
> driver for the new API,
> > and it works like this:
> >
> > AL_DISPLAY *display1 = al_create_display(640, 480,
> AL_WINDOWED);
> > AL_DISPLAY *display2 = al_create_display(640, 480,
> AL_WINDOWED);
> >
> > Will give me two independent windows.
> >
> > It works like this:
> >
> > al_create_display() uses the system_driver to get
> a list of available
> > display drivers, e.g. the X11 driver, and creates
> an AL_DISPLAY with
> > that driver. The display driver will create a new
> window with an event
> > loop. To get e.g. keyboard events, you would do
> something like:
> >
> > AL_KEYBOARD *keyboard1 = al_get_keyboard(display1)
> > AL_KEYBOARD *keyboard2 = al_get_keyboard(display2)
> >
> > Then if you simply want to read keys from any
> window, you do:
> >
> > AL_EVENT_QUEUE *queue = al_create_event_queue();
> > al_register_event_source(queue keyboard1);
> > al_register_event_source(queue keyboard2);
> >
> > AL_EVENT event;
> > al_get_next_event(queue &event);
> >
> > Does it all make sense? So basically, xwin.c in
> 4.2 is not executed by
> > allegro_init(), but by each al_create_dispay().
> >
> >
>
>
-------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support
> web services, security?
> Get stuff done quickly with pre-integrated
> technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1
> based on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> --
>
https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas