home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!mips!odin!fido!cashew.asd.sgi.com!kurt
- From: kurt@cashew.asd.sgi.com (Kurt Akeley)
- Subject: Re: GL question: writing to user-defined frame buffers
- Message-ID: <njhfkek@fido.asd.sgi.com>
- Sender: news@fido.asd.sgi.com (Usenet News Admin)
- Organization: Silicon Graphics, Inc.
- References: <1992Jul21.201836.7395@jarvis.csri.toronto.edu>
- Date: Wed, 22 Jul 1992 02:18:16 GMT
- Lines: 29
-
- --
- In article <1992Jul21.201836.7395@jarvis.csri.toronto.edu>, clr@dgp.toronto.edu (Stephen Bohus) writes:
- |>
- |> 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.
-
- It will change under OpenGL. GLX, the OpenGL extension to the X Window System,
- defines OpenGL rendering into all X drawables, including X pixmaps. On some
- machines the performance will be substantially lower than rendering to an X
- window, but the capability will always be there.
-
- |> 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).
-
- -- Kurt Akeley kurt@sgi.com (415) 390-3612 M/S 7U-550
- Silicon Graphics, Advanced Systems Division
- 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
-