home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17623 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.6 KB

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