home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: conty@cbnewsl.cb.att.com (E. Kontei)
- Newsgroups: fj.mail-lists.x-window
- Subject: Periodic Alarm Events in X-Windows
- Message-ID: <1992Nov19.025658.25200@sm.sony.co.jp>
- Date: 19 Nov 92 02:56:58 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: AT&T Bell Laboratories
- Lines: 27
- Approved: michael@sm.sony.co.jp
-
- Date: Wed, 11 Nov 1992 00:20:20 GMT
- Message-Id: <1992Nov11.002020.5216@cbnewsl.cb.att.com>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
-
- For my final Computer Graphics project, I'm supposed to implement a particle
- system. The actual application is up to me.
-
- I wanted to make an endless animation loop, which can be stopped at the
- press of the <escape> key. To make it even better, I want to implement
- a variable frame rate, controllable by the user while the application is
- running.
-
- It seems, however, that I've hit a snag. How do I implement clock interrupts
- as X-Windows events? I could set a separate interrupt catcher that could
- get an alarm, draw and display the new frame, and set up the new alarm, but it
- would be a lot cleaner if I simply could set up a way to generate an X-Window
- event when the alarm timer fires, so I could process frame refresh events and
- keyboard events in the same loop. How do I do this?
-
- As before, my professor doesn't do X-Windows, so he's not of any help.
- --
- E n r i q u e C o n t y
- The Incredible Man-with-no-Life
- jester@ihlpm.att.com
- Disclaimer: You're not dealing with AT&T
-