News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
drawing graphics in murgaLua
Author Message
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #1
RE: drawing graphics in murgaLua

observer Wrote:
An Fl:wait() in the event loop works for me in murgaLua.5.5 in my linux, Cygwin/Win32 build and Cygwin/X11 builds.


while (Fl:event_key() ~= fltk.FL_Escape) do
Fl:check()
wBig Grino_callback()
Fl:wait()
end


Fl_Wait works a lot of the time, but can be VERY unreliable. The best thing is to use a timer, but you really want to use that kind of loop, and for it to work on several different systems you should replace the "Fl:wait()" with a murgaLua.sleep() for a few milliseconds.

Trust me ;-)

Cheers
JohnM

08-06-2007 10:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
drawing graphics in murgaLua - widged - 06-05-2007, 11:01 PM
RE: drawing graphics in murgaLua - mikshaw - 06-06-2007, 02:00 AM
RE: drawing graphics in murgaLua - mikshaw - 06-23-2007, 06:00 AM
RE: drawing graphics in murgaLua - mikshaw - 06-23-2007, 12:38 PM
RE: drawing graphics in murgaLua - mikshaw - 06-23-2007, 01:02 PM
RE: drawing graphics in murgaLua - iGame3D - 06-25-2007, 03:29 PM
RE: drawing graphics in murgaLua - iGame3D - 06-25-2007, 08:11 PM
RE: drawing graphics in murgaLua - iGame3D - 06-25-2007, 08:25 PM
RE: drawing graphics in murgaLua - mikshaw - 06-27-2007, 12:21 AM
RE: drawing graphics in murgaLua - JohnMurga - 08-06-2007 10:12 PM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: