home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!sgigate!odin!mikey
- From: mikey@sgi.com (Mike Yang)
- Newsgroups: comp.sys.sgi
- Subject: Re: OpenGL and Motif Widgets
- Message-ID: <1992Jul26.005253.20522@odin.corp.sgi.com>
- Date: 26 Jul 92 00:52:53 GMT
- References: <1992Jul25.225817.22269@ringer.cs.utsa.edu>
- Sender: news@odin.corp.sgi.com (Net News)
- Organization: Silicon Graphics, Inc.
- Lines: 44
- Nntp-Posting-Host: eukanuba.wpd.sgi.com
-
- In article <1992Jul25.225817.22269@ringer.cs.utsa.edu> senseman@ricky.brainlab.utsa.edu (David M. Senseman) writes:
- >If I had had a chance to see OpenGL, I'm sure I wouldn't be asking
- >this question, but does OpenGL support Motif widgets and/or
- >does it have it's own widget library? Perhaps another way of
- >asking this is there a "GL" widget library available to
- >users? When the "big boys" at SGI write gl code with buttons,
- >sliders, scroll bars, etc., what do they use?
- >
- >The reason I'm asking is that we are training students to
- >write graphic programs for our Indigos and I would rather
- >teach them IrixGL than Motif -- if learning IrixGL is
- >more similar to the forthcoming OpenGL than Motif. However
- >I'm alittle tired of writing my own widgets. (Yeah I know
- >about the FORMS library).
-
- OpenGL is an X server extension -- like the Display Postscript
- extension. Both allow you to do a different kind of rendering while
- still using the X client/server event model.
-
- Motif is a widget set and includes buttons, menus, etc. Motif is not
- a different kind of rendering.
-
- Before (before IRIX 4.0), GL applications were forced to build their
- own "widgets" because they couldn't easily integrate GL rendering with
- the native window system and its available widget sets, if any. Now
- (IRIX 4.0 and later), the preferred method is to do "mixed model"
- applications which use X and its widget sets (e.g. Motif) for the
- basic user interface, but render in GL using the GLX widget.
-
- When OpenGL comes around, it will replace the GLX widget and provide
- another, more standard, mechanism for "mixed model." You will still
- probably want to use a standard toolkit like Motif for the basic look
- and feel, but use the OpenGL extensions to do the GL rendering.
-
- So, for now I would suggest using Motif for the basic inteface and the
- GLX widget for the GL rendering. This way, your students won't be
- encumbered by the details of buttons and menus and can instead
- concentrate on the GL portions of their applications. Later, OpenGL
- will be used instead of the GLX widget but the basic
- primitives/functions should be similar or the same.
-
- -----------------------------------------------------------------------
- Mike Yang Silicon Graphics, Inc.
- mikey@sgi.com 415/390-1786
-