home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12778 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.4 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!sgihub!zola!puck!gold
  2. From: gold@puck.esd.sgi.com (Michael Gold)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: using the X event queue in a GL window
  5. Message-ID: <ot80na8@zola.esd.sgi.com>
  6. Date: 22 Aug 92 17:30:21 GMT
  7. References: <!sjy!yq@rpi.edu>
  8. Sender: news@zola.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 21
  11.  
  12. In <!sjy!yq@rpi.edu> kyriazis@mistral.rdrc.rpi.edu (George Kyriazis) writes:
  13.  
  14. >I am using X and GL at the same time.  I want to have one event loop for
  15. >both my X interface and the GL window.
  16.  
  17. >Is there a way to grab X events that occur on a GL window?  That looks like
  18. >the best way so far, but I can't tell how to treat the GL graphics window
  19. >as an X entity.
  20.  
  21. Are you running under 4.0 or later?  If not, you should be...if so,
  22. the problem is a lot easier than you are making it.  To combine X and GL in
  23. a single application (if you are using Xt), use the GlxDraw widget, or the
  24. GlxMDraw widget if you using Motif.  Your GL window will then be an actual
  25. X window, and events will be dispatched as you wish.  Check out the examples
  26. in ~4Dgifts/examples/GLX/glxwidget/demos.
  27.  
  28. --
  29.     Michael I. Gold         You go your way, I'll go mine,
  30.     Silicon Graphics Inc.    I don't care if we get there on time,
  31.     gold@sgi.com        Everybody's searching for something they say,
  32.     (415) 390-1709        I'll get my kicks on the way...
  33.