⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fglcolormaterial.html

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 HTML
字号:
<HTML><BODY><PRE>     <STRONG>NAME</STRONG>	  <STRONG>fglColorMaterial</STRONG> - cause a material color to track the	  current color     <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG>	  SUBROUTINE <STRONG>fglColorMaterial</STRONG>( INTEGER*4 <EM>face</EM>,				       INTEGER*4 <EM>mode</EM> )     <STRONG>PARAMETERS</STRONG>	  <EM>face</EM>	Specifies whether front, back, or both front and back		material parameters should track the current color.		Accepted values	are <STRONG>GL_FRONT</STRONG>, <STRONG>GL_BACK</STRONG>, and		<STRONG>GL_FRONT_AND_BACK</STRONG>.  The	initial	value is		<STRONG>GL_FRONT_AND_BACK</STRONG>.	  <EM>mode</EM>	Specifies which	of several material parameters track		the current color.  Accepted values are	<STRONG>GL_EMISSION</STRONG>,		<STRONG>GL_AMBIENT</STRONG>, <STRONG>GL_DIFFUSE</STRONG>,	<STRONG>GL_SPECULAR</STRONG>, and		<STRONG>GL_AMBIENT_AND_DIFFUSE</STRONG>.	 The initial value is		<STRONG>GL_AMBIENT_AND_DIFFUSE</STRONG>.     <STRONG>DESCRIPTION</STRONG>	  <STRONG>fglColorMaterial</STRONG> specifies which material parameters track	  the current color.  When <STRONG>GL_COLOR_MATERIAL</STRONG> is	enabled, the	  material parameter or	parameters specified by	<EM>mode</EM>, of the	  material or materials	specified by <EM>face</EM>, track the current	  color	at all times.	  To enable and	disable	<STRONG>GL_COLOR_MATERIAL</STRONG>, call	<STRONG>fglEnable</STRONG> and	  <STRONG>fglDisable</STRONG> with argument <STRONG>GL_COLOR_MATERIAL</STRONG>.	  <STRONG>GL_COLOR_MATERIAL</STRONG> is initially disabled.     <STRONG>NOTES</STRONG>	  <STRONG>fglColorMaterial</STRONG> makes it possible to	change a subset	of	  material parameters for each vertex using only the <STRONG>fglColor</STRONG>	  command, without calling <STRONG>fglMaterial</STRONG>.	 If only such a	subset	  of parameters	is to be specified for each vertex, calling	  <STRONG>fglColorMaterial</STRONG> is preferable to calling <STRONG>fglMaterial</STRONG>.	  Call <STRONG>fglColorMaterial</STRONG>	before enabling	<STRONG>GL_COLOR_MATERIAL</STRONG>.	  Calling <STRONG>fglDrawElements</STRONG> may leave the	current	color	  indeterminate.  If <STRONG>fglColorMaterial</STRONG> is enabled while the	  current color	is indeterminate, the lighting material	state	  specified by <EM>face</EM> and	<EM>mode</EM> is	also indeterminate.	  If the GL version is 1.1 or greater, and <STRONG>GL_COLOR_MATERIAL</STRONG>	  is enabled, evaluated	color values affect the	results	of the	  lighting equation as if the current color were being	  modified, but	no change is made to the tracking lighting	  parameter of the current color.     <STRONG>ERRORS</STRONG>	  <STRONG>GL_INVALID_ENUM</STRONG> is generated if <EM>face</EM> or <EM>mode</EM> is not an	  accepted value.	  <STRONG>GL_INVALID_OPERATION</STRONG> is generated if <STRONG>fglColorMaterial</STRONG>	is	  executed between the execution of <STRONG>fglBegin</STRONG> and the	  corresponding	execution of <STRONG>fglEnd</STRONG>.     <STRONG>ASSOCIATED</STRONG>	<STRONG>GETS</STRONG>	  <STRONG>fglIsEnabled</STRONG> with argument <STRONG>GL_COLOR_MATERIAL</STRONG>	  <STRONG>fglGet</STRONG> with argument <STRONG>GL_COLOR_MATERIAL_PARAMETER</STRONG>	  <STRONG>fglGet</STRONG> with argument <STRONG>GL_COLOR_MATERIAL_FACE</STRONG>     <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG>	  <STRONG>fglColor</STRONG>, <STRONG>fglColorPointer</STRONG>, <STRONG>fglDrawElements</STRONG>, <STRONG>fglEnable</STRONG>,	  <STRONG>fglLight</STRONG>, <STRONG>fglLightModel</STRONG>, <STRONG>fglMaterial</STRONG></PRE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -