zsource man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



zsource(3G)							   zsource(3G)

NAME
     zsource - selects the source for z-buffering comparisons

C SPECIFICATION
     void zsource(src)
     long src;

PARAMETERS
     src   expects one of two possible values:

	   ZSRC_DEPTH, z-buffering is done by depth comparison (default).

	   ZSRC_COLOR, z-buffering is done by color comparison.

DESCRIPTION
     By default z-buffer comparisons are done on depth data.  However, in
     certain cases, it can be useful to z-buffer by comparing color values,
     especially the color index values generated by the linesmooth and
     pntsmooth hardware.  When the src parameter is ZSRC_DEPTH, the z-buffer
     operation is normal.  When	 the src parameter is ZSRC_COLOR, however,
     source and destination color values are compared to determine which
     pixels the system draws.  In this mode, the zbuffer is not updated when a
     pixel is written.

     A separate zsource mode is retained by each of the framebuffers:  normal,
     popup, overlay, and underlay.  The current draw mode determines which z
     source mode is used, and which is modified by zsource.

SEE ALSO
     drawmode, gversion, linesmooth, pntsmooth, zbuffer, zfunction

NOTES
     This subroutine does not function on IRIS-4D B or G models.

     Currently z-buffer operation is supported only in the normal framebuffer.
     To insure compatibility with future releases of the GL, make calls to
     zsource only while draw mode is NORMALDRAW.

     Use zsource(ZSRC_COLOR) for correct anti-aliasing support in color index
     mode on Iris Indy and Iris Indigo.

BUGS
     IRIS-4D GT and GTX models support zsource(ZSRC_COLOR) only for non-
     subpixel positioned lines drawn after a linesmooth(SML_ON) call.

     On early serial numbers of the Personal Iris, ZSRC_DEPTH is the only
     supported setting for this routine. For compatibility, they accept the
     call zsource(ZSRC_COLOR), but it has the same effect as calling
     zfunction(ZF_ALWAYS), which turns off z value comparison. This allows the
     unrestricted drawing of color values into the front and back buffers and
     depth values into the z-buffer.  Use gversion to determine which type of
     Personal Iris you have.

									Page 1

zsource(3G)							   zsource(3G)

     IRIS-4D VGX models support zsource(ZSRC_COLOR) only in color map mode.
     Stencil operation is undefined in this case.

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net