home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11147 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!odin!fido!cashew.asd.sgi.com!kurt
  3. From: kurt@cashew.asd.sgi.com (Kurt Akeley)
  4. Subject: Re: GL question: writing to user-defined frame buffers
  5. Message-ID: <njhfkek@fido.asd.sgi.com>
  6. Sender: news@fido.asd.sgi.com (Usenet News Admin)
  7. Organization: Silicon Graphics, Inc.
  8. References:  <1992Jul21.201836.7395@jarvis.csri.toronto.edu>
  9. Date: Wed, 22 Jul 1992 02:18:16 GMT
  10. Lines: 29
  11.  
  12. -- 
  13. In article <1992Jul21.201836.7395@jarvis.csri.toronto.edu>, clr@dgp.toronto.edu (Stephen Bohus) writes:
  14. |> 
  15. |>     In article 23321 Jonathan Lim lim@cs.umass.edu writes:
  16. |> 
  17. |> > Is it possible to define some array in which all graphics output will be sent?
  18. |> > As it stands now, I have to open a window, call some routines to draw into a
  19. |> > buffer, then read from the buffer using lrectread. What I'd like to do is to
  20. |> > have GL draw into some array without ever opening a window. (This would be
  21. |> > analogous to X's capability of writing into a drawable, e.g. pixmap.) Any help
  22. |> > would be appreciated.
  23. |> 
  24. |>     No, this can't be done (as far as I know).  The graphics pipeline is
  25. |> hardwired to the screen.  I don't know if this will change under OpenGL or
  26. |> on new hardware architectures.
  27.  
  28. It will change under OpenGL.  GLX, the OpenGL extension to the X Window System,
  29. defines OpenGL rendering into all X drawables, including X pixmaps.  On some
  30. machines the performance will be substantially lower than rendering to an X
  31. window, but the capability will always be there.
  32.  
  33. |>     The only way you can send graphics output to an array (like the ones used
  34. |> in lrectread and lrectwrite) is to write your own graphics routine.  I have
  35. |> written a few routines to do two dimensional drawing in arrays (for polygons,
  36. |> circles, fills).
  37.  
  38. -- Kurt Akeley        kurt@sgi.com  (415) 390-3612  M/S 7U-550
  39.             Silicon Graphics, Advanced Systems Division
  40.             2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
  41.