fglFragmentColorMaterial(3G)

fglFragmentColorMaterialSGIX - cause a fragment material color to track the current fragment color

As shipped in IRIX 6.5.15. Added in IRIX 6.5.15.

NAME
     fglFragmentColorMaterialSGIX - cause a fragment material color to track
     the current fragment color


FORTRAN SPECIFICATION
     SUBROUTINE fglFragmentColorMaterialSGIX( INTEGER*4 face,
                                              INTEGER*4 mode )


PARAMETERS
     face  Specifies whether front, back, or both front and back fragment
           material parameters should track the current fragment color.
           Accepted values are GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK.  The
           initial value is GL_FRONT_AND_BACK.

     mode  Specifies which of several fragment material parameters track the
           current fragment color.  Accepted values are GL_EMISSION,
           GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, and GL_AMBIENT_AND_DIFFUSE.
           The initial value is GL_AMBIENT_AND_DIFFUSE.

DESCRIPTION
     fglFragmentColorMaterial specifies which fragment material parameters
     track the current fragment color.  When GL_FRAGMENT_COLOR_MATERIAL_SGIX
     is enabled, the material parameter or parameters specified by mode, of
     the material or materials specified by face, track the evaluated fragment
     color at each vertex.

     To enable and disable GL_FRAGMENT_COLOR_MATERIAL_SGIX, call fglEnable and
     fglDisable with argument GL_FRAGMENT_COLOR_MATERIAL_SGIX.
     GL_FRAGMENT_COLOR_MATERIAL_SGIX is initially disabled.

NOTES
     If GL_FRAGMENT_COLOR_MATERIAL_SGIX is enabled the specified fragment
     material parameters used in fragment lighting calculations will track the
     fragment color calculated by the regular OpenGL Color and Lighting
     operations.  Other parameters will use values specified by the most
     recent call to fglFragmentMaterial at the time of the provoking vertex.

     Note that the color used is the result after applying all regular OpenGL
     Lighting calculations, not simply the color supplied in the most recent
     call to fglColor.

ERRORS
     GL_INVALID_ENUM is generated if face or mode is not an accepted value.

     GL_INVALID_OPERATION is generated if fglFragmentColorMaterial is executed
     between the execution of fglBegin and the corresponding execution of
     fglEnd.
ASSOCIATED GETS
     fglIsEnabled with argument GL_FRAGMENT_COLOR_MATERIAL_SGIX
     fglGet with argument GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX
     fglGet with argument GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX


MACHINE DEPENDENCIES
     The SGIX_fragment_lighting extension is supported only on Octane2 VPro
     systems.


SEE ALSO
     fglColor, fglEnable, fglFragmentLight, fglFragmentLightModel,
     fglFragmentMaterial