Difference between revisions of "Template:Glapi texture comparison funcs"

From OpenGL Wiki
Jump to navigation Jump to search
(template for GLAPI.)
 
(Table fix.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{|
 
{|
|+
+
|-
 
! '''Texture Comparison Function'''
 
! '''Texture Comparison Function'''
 
! '''Computed result'''
 
! '''Computed result'''
|+
+
|-
| {{code|GL_LEQUAL}}
+
| {{enum|GL_LEQUAL}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 10: Line 10:
 
  0.0, & r > D_t
 
  0.0, & r > D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_GEQUAL}}
+
| {{enum|GL_GEQUAL}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 17: Line 17:
 
  0.0, & r < D_t
 
  0.0, & r < D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_LESS}}
+
| {{enum|GL_LESS}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 24: Line 24:
 
  0.0, & r \ge D_t
 
  0.0, & r \ge D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_GREATER}}
+
| {{enum|GL_GREATER}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 31: Line 31:
 
  0.0, & r \le D_t
 
  0.0, & r \le D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_EQUAL}}
+
| {{enum|GL_EQUAL}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 38: Line 38:
 
  0.0, & r \ne D_t
 
  0.0, & r \ne D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_NOTEQUAL}}
+
| {{enum|GL_NOTEQUAL}}
 
| <math>result =  
 
| <math>result =  
 
\begin{cases}
 
\begin{cases}
Line 45: Line 45:
 
  0.0, & r = D_t
 
  0.0, & r = D_t
 
\end{cases}</math>
 
\end{cases}</math>
|+
+
|-
| {{code|GL_ALWAYS}}
+
| {{enum|GL_ALWAYS}}
 
| <math>result = 1.0</math>
 
| <math>result = 1.0</math>
|+
+
|-
| {{code|GL_NEVER}}
+
| {{enum|GL_NEVER}}
 
| <math>result = 0.0</math>
 
| <math>result = 0.0</math>
 
|}
 
|}
 +
<noinclude>[[Category:Template Tables]]</noinclude>

Latest revision as of 07:17, 16 February 2013

Texture Comparison Function Computed result
GL_LEQUAL
GL_GEQUAL
GL_LESS
GL_GREATER
GL_EQUAL
GL_NOTEQUAL
GL_ALWAYS
GL_NEVER