<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_GraphicContext::set_stencil_operation - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>CL_GraphicContext::set_stencil_operation</h1> <p> Set stencil test function when writing to stencil, and operations to do when a test passes or fails</p> <pre> void set_stencil_operation( CL_StencilOp pass, CL_StencilOp fail, CL_StencilFunc func, int ref=1); </pre> <p><b>Parameters:</b></p> <dl> <dt><i>CL_StencilOp pass </i></dt><dd>Modification to stencil buffer when a test passes.</dd> <dt><i>CL_StencilOp fail </i></dt><dd>Modification to stencil buffer when a test fails.</dd> <dt><i>CL_StencilFunc func </i></dt><dd>Type of test to do when writing to stencil.</dd> <dt><i>int ref </i></dt><dd>value compared to stencil contents. Default: 1</dd> </dl> <p><b>See also:</b></p> <p><a href="CL_GraphicContext.html">CL_GraphicContext</a></p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->