|
question to allegro developpers |
karistouf
Member #5,126
October 2004
|
Hello, I m using allegro as graphical library for a theatre applications, remoting lights on stage. I m working under windows and using mingw32 and dev-cpp. So i have 2 questions: I want my program to be a server, waiting from orders in this protocol. As my program is controlling lights, it needs to be activ everytime. THATS THE MAIN POINT. So, this is a real question. I m very happy to use allegro. It permits me to design and create an application wich is beautifull by aspect and by use. That must be said to community of developpers from time to time ( ) sincerely yours, christoph "step by step" |
Marco Radaelli
Member #3,028
December 2002
|
Take a look at set_display_switch_mode()
|
Elias
Member #358
May 2000
|
See here in the documentation: http://alleg.sourceforge.net/onlinedocs/en/alleg008.html#set_display_switch_mode What you want is something like: if (set_display_switch_mode(SWITCH_BACKGROUND)) set_display_switch_mode(SWITCH_BACKAMNESIA));
-- |
karistouf
Member #5,126
October 2004
|
thanks !!! it s good to know this answer. definitively allegro is surprising .... "step by step" |
A J
Member #3,025
December 2002
|
excuse my frenglish use set_display_mode() for constant running application, but be aware that allegro is a single threaded application, and not good for data processing of UDP and OSC when doing graphics at the same time. This type of application would be better suited to multi-threaded, so that allegro will not effect your data processing, allegro would be useful as a graphical interface only. ___________________________ |
karistouf
Member #5,126
October 2004
|
excuse also my enfrench Quote: be aware that allegro is a single threaded application, and not good for data processing of UDP and OSC when doing graphics at the same time.
In fact, It will run as server, receive orders. my program will be server and is already refreshing at 50/sec minimum. All graphics are informations, not complex treatment. Yes, i m using allegro as graphical GUI ( and its very confortable and easy) and I m using its function of timer. Only one in use. So, after all my bla bla I would like to understand why you are talking about multithreading ? A single explanation ( not technical) would very interresting. I m very interrested by your advise. waiting for news pleasure, christoph "step by step" |
A J
Member #3,025
December 2002
|
are you sending data from the timer handler ? how can you have accurate times for OSC packets if your busy drawing allegro graphics. How time critical is sending the data ? ___________________________ |
|