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

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

Contents


afunction(3G)							 afunction(3G)


NAME    [Toc]    [Back]

     afunction - specify alpha test function

C SPECIFICATION    [Toc]    [Back]

     void afunction(ref, func)
     long ref, func;

PARAMETERS    [Toc]    [Back]

     ref    expects a reference	value with which to compare source alpha at
	    each pixel.	 This value should be in the range 0 through 255.

     func   is a symbolic constant taken from the list below.  It identifies
	    the	alpha comparison function:  AF_NEVER, AF_LESS, AF_EQUAL,
	    AF_LEQUAL, AF_GREATER, AF_NOTEQUAL,	AF_GEQUAL, and AF_ALWAYS.
	    AF_ALWAYS is the default.

DESCRIPTION    [Toc]    [Back]

     afunction makes the drawing of pixels conditional on the relationship of
     the incoming alpha	value with a reference constant	value.	It is
     typically used to avoid updating either the color or the z	bitplanes of a
     framebuffer pixel when the	incoming pixel is completely transparent.
     Arguments ref and func specify the	conditions under which the pixel will
     be	drawn.	The incoming (source) alpha value is compared against ref with
     function func.  This comparison function is specified with	the symbolic
     constants:

     AF_NEVER	    Never pass.

     AF_LESS	    Pass if alpha is less than ref.

     AF_EQUAL	    Pass if alpha is equal to ref.

     AF_LEQUAL	    Pass if alpha is less than or equal	to ref.

     AF_GREATER	    Pass if alpha is greater than ref.

     AF_GEQUAL	    Pass if alpha is greater than or equal to ref.

     AF_NOTEQUAL    Pass if alpha is not equal to ref.

     AF_ALWAYS	    Always pass.

     If	the comparison passes, the incoming pixel is drawn (conditional	on
     subsequent	other tests like z-buffer).

     afunction can be called with arguments 0,AF_NOTEQUAL to defeat drawing of
     completely	transparent pixels.  This assumes that incoming	alpha is
     proportional to pixel coverage, as	it is when either pointsmooth or
     linesmooth	is being used.






									Page 1






afunction(3G)							 afunction(3G)



     afunction testing follows scan conversion and texture mapping but
     precedes all other	pixel tests.  Thus, if the test	fails, color, zbuffer
     and stencil contents will not be modified.

     afunction operates	on all pixel writes, including those resulting from
     the scan conversion of points, lines, and polygons, and from pixel	write
     and copy operations. afunction does not affect screen clear operation,
     however.

SEE ALSO    [Toc]    [Back]

      
      
     blendfunction

NOTES    [Toc]    [Back]

     IRIS-4D G,	GT, and	GTX models, and	the Personal Iris, do not support
     afunction.	 Use getgdesc to determine what	support	is available for
     afunction.

BUGS    [Toc]    [Back]

     On	IRIS-4D	VGX, XS, XS24, XZ, Elan	and Extreme models, afunction cannot
     be	enabled	while stencil is being used.  Also on these models, only
     AF_NOTEQUAL with ref equal	to 0 and AF_ALWAYS are supported.


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
glalphafunc IRIX specify the alpha test function
glAlphaFunc Tru64 specify the alpha test function
dmColorSetDefaultAlpha IRIX set/get the default alpha value of the source image.
boot_alpha OpenBSD Alpha system bootstrapping procedures
zsyr IRIX perform the symmetric rank 1 operation A := alpha*x*( x' ) + A,
le OpenBSD Alpha on-board or PCI AMD LANCE Ethernet interface
csyr IRIX perform the symmetric rank 1 operation A := alpha*x*( x' ) + A,
cgegv IRIX B, the generalized eigenvalues (alpha, beta), and optionally,
zgegv IRIX B, the generalized eigenvalues (alpha, beta), and optionally,
claset IRIX initialize a 2-D array A to BETA on the diagonal and ALPHA on the offdiagonals
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service