*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/readsource (3)              
Title
Content
Arch
Section
 

Contents


readsource(3G)							readsource(3G)


NAME    [Toc]    [Back]

     readsource	- sets the source for pixels that various routines read

C SPECIFICATION    [Toc]    [Back]

     void readsource(src)
     long src;

PARAMETERS    [Toc]    [Back]

     src   expects a symbolic constant that identifies the pixel source	that
	   is to be used:

	   SRC_AUTO selects the	front color buffer when	the current
	   framebuffer,	as specified by	drawmode, is in	single buffer mode. It
	   selects the back color buffer when the current framebuffer is in
	   double buffer mode.	This is	the default.

	   SRC_FRONT selects the front color buffer of the current
	   framebuffer,	as specified by	drawmode.  This	source is valid	for
	   both	single buffer and double buffer	operation.

	   SRC_BACK selects the	back color buffer of the current framebuffer,
	   as specified	by drawmode.  This source is valid only	while the
	   current framebuffer is in double buffer mode.

	   SRC_ZBUFFER selects the z-buffer of the current framebuffer.
	   Because only	the normal framebuffer has a z-buffer, this source is
	   currently valid only	while draw mode	is NORMALDRAW.

	   SRC_FRAMEGRABBER selects the	Live Video Digitizer as	the pixel
	   source, regardless of the current draw mode.	 This source is	valid
	   only	on IRIS-4D GTX and VGX models with the Live Video Digitizer
	   option board.  IRIS-4D GTX models support this source only during
	   rectcopy, not rectread or lrectread.

	   SRC_OVER selects the	overlay	planes,	and is valid only while	draw
	   mode	is NORMALDRAW.	This source is valid only on the Personal
	   Iris.

	   SRC_UNDER selects the underlay planes, and is valid only while draw
	   mode	is NORMALDRAW.	This source is valid only on the Personal
	   Iris.

	   SRC_PUP selects the pop-up planes, and is valid only	while draw
	   mode	is NORMALDRAW.	This source is valid only on the Personal
	   Iris.

	   SRC_ILBUFFER_1 SRC_ILBUFFER_2 SRC_ILBUFFER_3	SRC_ILBUFFER_4
	   SRC_ILBUFFER_5 SRC_ILBUFFER_6 SRC_ILBUFFER_7	SRC_ILBUFFER_8
	   SRC_ILBUFFER_9 SRC_ILBUFFER_10 SRC_ILBUFFER_11 SRC_ILBUFFER_12
	   SRC_ILBUFFER_13 SRC_ILBUFFER_14 SRC_ILBUFFER_15 SRC_ILBUFFER_16
	   selects the ilbuffers previously allocated with ilbuffer.  This
	   source is valid only	on the RealityEngine systems running 5.0.1 or



									Page 1






readsource(3G)							readsource(3G)



	   later.

DESCRIPTION    [Toc]    [Back]

     readsource	specifies the pixel source buffer that rectcopy, readpixels,
     readRGB, rectread,	and lrectread use. A separate read source is
     maintained	for each of the	GL framebuffers:  normal, pop-up, overlay, and
     underlay.	Calls to readsource change the read source of the currently
     active framebuffer, as specified by drawmode.  By default the read	source
     for each framebuffer is SRC_AUTO.

     Because read sources, with	the exception of some implemented only on the
     Personal Iris, always specify a source within the current framebuffer, it
     is	not possible to	copy pixels from one framebuffer to another.  Such a
     copy must be implemented by first reading pixels out of the source
     framebuffer, then changing	the draw mode to the destination framebuffer,
     and writing the pixels.

SEE ALSO    [Toc]    [Back]

      
      
     lrectread,	readpixels, readRGB, rectcopy

NOTES    [Toc]    [Back]

     This subroutine is	available only in immediate mode.

     On	the IRIS-4D B or G models, SRC_ZBUFFER is not available.

     Read sources SRC_OVER, SRC_UNDER, and SRC_PUP operate only	on the
     Personal Iris.

BUGS    [Toc]    [Back]

     On	the IRIS-4D GT and GTX models, and on all Personal IRIS, XS, XS24, XZ,
     Elan and Extreme systems, a single	readsource variable is shared between
     the four framebuffers.

     On	the Personal Iris, the source for pixel	reads does not change when
     changing framebuffers (via	drawmode) unless the current selected read
     source is SRC_AUTO	(the default).

     On	some IRIS-4D GT	and GTX	models,	while copying rectangles with blending
     active, readsource	also specifies the bank	from which destination color
     and alpha are read	(overriding the	blendfunction setting).


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
readcomponent IRIX sets the component source within the framebuffer source for pixels that various routines read, useful primaril
glreadbuffer IRIX select a color buffer source for pixels
glReadBuffer Tru64 select a color buffer source for pixels
glreadpixels IRIX read a block of pixels from the frame buffer
glReadPixels Tru64 read a block of pixels from the frame buffer
XmTextSetSource IRIX A Text function that sets the source of the widget
XmTextSetSource HP-UX A Text function that sets the source of the widget
XmTextSetSource Tru64 A Text function that sets the source of the widget
SSL_set_read_ahead Tru64 sets the read-ahead flag in the SSL structure.
krb5_get_host_realm FreeBSD default and host realm read and manipulation routines
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service