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