home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!dgp.toronto.edu!clr
- Newsgroups: comp.sys.sgi
- From: clr@dgp.toronto.edu (Stephen Bohus)
- Subject: GL question: writing to user-defined frame buffers
- Message-ID: <1992Jul21.201836.7395@jarvis.csri.toronto.edu>
- Organization: CSRI, University of Toronto
- Date: 22 Jul 92 00:18:37 GMT
- Lines: 22
-
- In article 23321 Jonathan Lim lim@cs.umass.edu writes:
-
- > Is it possible to define some array in which all graphics output will be sent?
- > As it stands now, I have to open a window, call some routines to draw into a
- > buffer, then read from the buffer using lrectread. What I'd like to do is to
- > have GL draw into some array without ever opening a window. (This would be
- > analogous to X's capability of writing into a drawable, e.g. pixmap.) Any help
- > would be appreciated.
-
- No, this can't be done (as far as I know). The graphics pipeline is
- hardwired to the screen. I don't know if this will change under OpenGL or
- on new hardware architectures.
- The only way you can send graphics output to an array (like the ones used
- in lrectread and lrectwrite) is to write your own graphics routine. I have
- written a few routines to do two dimensional drawing in arrays (for polygons,
- circles, fills).
-
- Stephen Bohus (clr@dgp.toronto.edu)
-
- ~~~~~~~~~~
- APWAIWGATI
- "Anything's possible WHEN and IF we get around to it."
-