home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11392 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.7 KB

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