Next: soft-shader, Previous: sleep-until, Up: GCL Reference [Contents][Index]
(snapshot CAM-ID NOMEDOARQUIVO [FORMAT [XSIZE [YSIZE]]])Save a snapshot of CAM-ID in the NOMEDOARQUIVO (a sequência de caracteres). The
FORMAT argumento is optional; it may be "ppmscreen" (the default),
"ps", "ppm", "sgi" (on SGI machines), "ppmosmesa" (if built with
libOSMesa) ou "ppmosglx". A "ppmscreen" snapshot is created by reading
the image directly from the given janela; the janela is popped above
other janelas and redrawn first, then its contents are written as a PPM
format image. A "ppmosmesa" snapshot is drawn by Mesa’s software
renderer into a memory buffer in RAM. A "ppmosglx" snapshot is rendered
into a GLX Pixmap buffer, which is also off-screen but may ou may not
reside in video RAM. Rendering may ou may not be accelerated. The
problem with on-screen snapshots is that the janela must be mapped and
not obscured by other janelas. So on-screen snapshots will not work in
the background, ou when a screen safer is active. With "ps", dumps a
Postscript picture representing the view from that janela;
hidden-surface removal might be incorrect. With "ppm", dumps a
PPM-format image produced by geomview’s internal software renderer; this
may be of arbitrary size. If the NOMEDOARQUIVO argumento begins with
"|", it’s interpreted as a /bin/sh command to which the PPM ou PS
data should be piped. Optional XSIZE and YSIZE values are
relevant only for "ppm" formats, and render to a janela of that size (or
scaled to that size, with aspect fixed, if only XSIZE is given)