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

📄 fgldepthfunc.html

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 HTML
字号:
<HTML><BODY><PRE>     <STRONG>NAME</STRONG>	  <STRONG>fglDepthFunc</STRONG> - specify the value used	for depth buffer	  comparisons     <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG>	  SUBROUTINE <STRONG>fglDepthFunc</STRONG>( INTEGER*4 <EM>func</EM> )     <STRONG>PARAMETERS</STRONG>	  <EM>func</EM>	Specifies the depth comparison function.  Symbolic		constants <STRONG>GL_NEVER</STRONG>, <STRONG>GL_LESS</STRONG>, <STRONG>GL_EQUAL</STRONG>, <STRONG>GL_LEQUAL</STRONG>,		<STRONG>GL_GREATER</STRONG>, <STRONG>GL_NOTEQUAL</STRONG>, <STRONG>GL_GEQUAL</STRONG>, and	<STRONG>GL_ALWAYS</STRONG> are		accepted.  The initial value is	<STRONG>GL_LESS</STRONG>.     <STRONG>DESCRIPTION</STRONG>	  <STRONG>fglDepthFunc</STRONG> specifies the function used to compare each	  incoming pixel depth value with the depth value present in	  the depth buffer.  The comparison is performed only if depth	  testing is enabled.  (See <STRONG>fglEnable</STRONG> and <STRONG>fglDisable</STRONG> of	  <STRONG>GL_DEPTH_TEST</STRONG>.)	  <EM>func</EM> specifies the conditions	under which the	pixel will be	  drawn.  The comparison functions are as follows:	  <STRONG>GL_NEVER</STRONG>	  Never	passes.	  <STRONG>GL_LESS</STRONG>	  Passes if the	incoming depth value is	less			  than the stored depth	value.	  <STRONG>GL_EQUAL</STRONG>	  Passes if the	incoming depth value is	equal			  to the stored	depth value.	  <STRONG>GL_LEQUAL</STRONG>	  Passes if the	incoming depth value is	less			  than or equal	to the stored depth value.	  <STRONG>GL_GREATER</STRONG>	  Passes if the	incoming depth value is			  greater than the stored depth	value.	  <STRONG>GL_NOTEQUAL</STRONG>	  Passes if the	incoming depth value is	not			  equal	to the stored depth value.	  <STRONG>GL_GEQUAL</STRONG>	  Passes if the	incoming depth value is			  greater than or equal	to the stored depth			  value.	  <STRONG>GL_ALWAYS</STRONG>	  Always passes.	  The initial value of <EM>func</EM> is <STRONG>GL_LESS</STRONG>.	 Initially, depth	  testing is disabled.	Even if	the depth buffer exists	and	  the depth mask is non-zero, the depth	buffer is not updated	  if the depth test is disabled.     <STRONG>ERRORS</STRONG>	  <STRONG>GL_INVALID_ENUM</STRONG> is generated if <EM>func</EM> is not an accepted	  value.	  <STRONG>GL_INVALID_OPERATION</STRONG> is generated if <STRONG>fglDepthFunc</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>fglGet</STRONG> with argument <STRONG>GL_DEPTH_FUNC</STRONG>	  <STRONG>fglIsEnabled</STRONG> with argument <STRONG>GL_DEPTH_TEST</STRONG>     <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG>	  <STRONG>fglDepthRange</STRONG>, <STRONG>fglEnable</STRONG>, <STRONG>fglPolygonOffset</STRONG></PRE></BODY></HTML>

⌨️ 快捷键说明

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