home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 18987 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsl!conty
  3. From: conty@cbnewsl.cb.att.com (E. Kontei)
  4. Subject: Periodic Alarm Events in X-Windows
  5. Organization: AT&T Bell Laboratories
  6. Date: Wed, 11 Nov 1992 00:20:20 GMT
  7. Message-ID: <1992Nov11.002020.5216@cbnewsl.cb.att.com>
  8. Lines: 22
  9.  
  10.  
  11. For my final Computer Graphics project, I'm supposed to implement a particle
  12. system.  The actual application is up to me.
  13.  
  14. I wanted to make an endless animation loop, which can be stopped at the
  15. press of the <escape> key.  To make it even better, I want to implement
  16. a variable frame rate, controllable by the user while the application is
  17. running.
  18.  
  19. It seems, however, that I've hit a snag.  How do I implement clock interrupts
  20. as X-Windows events?  I could set a separate interrupt catcher that could
  21. get an alarm, draw and display the new frame, and set up the new alarm, but it
  22. would be a lot cleaner if I simply could set up a way to generate an X-Window
  23. event when the alarm timer fires, so I could process frame refresh events and
  24. keyboard events in the same loop.  How do I do this?
  25.  
  26. As before, my professor doesn't do X-Windows, so he's not of any help.
  27. -- 
  28.                 E n r i q u e  C o n t y
  29.             The Incredible Man-with-no-Life
  30.                   jester@ihlpm.att.com
  31.             Disclaimer: You're not dealing with AT&T
  32.