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

  man pages->IRIX man pages -> OpenGL/glfragmentcolormaterial (3)              
Title
Content
Arch
Section
 

Contents


glFragmentColorMaterial(3G)    OpenGL Reference	   glFragmentColorMaterial(3G)


NAME    [Toc]    [Back]

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

C SPECIFICATION    [Toc]    [Back]

     void glFragmentColorMaterialSGIX( GLenum face,
				       GLenum mode )

PARAMETERS    [Toc]    [Back]

     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    [Toc]    [Back]

     glFragmentColorMaterial 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 glEnable and
     glDisable with argument GL_FRAGMENT_COLOR_MATERIAL_SGIX.
     GL_FRAGMENT_COLOR_MATERIAL_SGIX is	initially disabled.

NOTES    [Toc]    [Back]

     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 glFragmentMaterial 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 glColor.

ERRORS    [Toc]    [Back]

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

     GL_INVALID_OPERATION is generated if glFragmentColorMaterial is executed
     between the execution of glBegin and the corresponding execution of
     glEnd.






									Page 1






glFragmentColorMaterial(3G)    OpenGL Reference	   glFragmentColorMaterial(3G)


ASSOCIATED GETS    [Toc]    [Back]

     glIsEnabled with argument GL_FRAGMENT_COLOR_MATERIAL_SGIX
     glGet with	argument GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX
     glGet with	argument GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX


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

SEE ALSO    [Toc]    [Back]

      
      
     glColor, glEnable,	glFragmentLight, glFragmentLightModel,
     glFragmentMaterial


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
glfragmentmaterial IRIX specify fragment material parameters for the fragment lighting model
glColorMaterial Tru64 cause a material color to track the current color
glcolormaterial IRIX cause a material color to track the current color
glgetfragmentmaterial IRIX return fragment material parameters
DXmColorMixGetNewColor Tru64 Retrieves (returns) the color mixing widget's current new color red, green, and blue values.
gllightenv IRIX specify fragment lighting environment
glfragmentlight IRIX set fragment light source parameters
bsd.regress.mk OpenBSD regression test master Makefile fragment
bsd.port.mk OpenBSD ports tree master Makefile fragment
glgetfragmentlight IRIX return fragment light source parameter values
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service