GPU/Commands: Difference between revisions
Line 1,458: | Line 1,458: | ||
! Value | ! Value | ||
! Final stencil value | ! Final stencil value | ||
! OpenGL equivalent | |||
|- | |- | ||
| 0 | | 0 | ||
| | | old_stencil | ||
| GL_KEEP | |||
|- | |- | ||
| 1 | | 1 | ||
| | | unknown | ||
| | |||
|- | |- | ||
| 2 | | 2 | ||
| | | reference | ||
| GL_REPLACE | |||
|- | |- | ||
| 3 | | 3 | ||
| | | max(old_stencil + 1, 255) | ||
| GL_INCR | |||
|- | |- | ||
| 4 | | 4 | ||
| | | min(old_stencil - 1, 0) | ||
| GL_DECR | |||
|- | |- | ||
| 5 | | 5 | ||
| | | ~old_stencil | ||
| GL_INVERT | |||
|- | |- | ||
| 6 | | 6 | ||
| | | unknown | ||
| | |||
|- | |- | ||
| 7 | | 7 | ||
| | | unknown | ||
| | |||
|} | |} | ||
' | |||
'old_stencil' is the value present in the stencil buffer, 'reference' is the reference value specified in command 0x0105. | |||
=== Parameter structure for command 0x004D === | === Parameter structure for command 0x004D === |