1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8<TITLE>GXSetCoPlanar</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GXSetCoPlanar</H1> 12<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE>#<CODE>#include <revolution/gx.h></CODE></PRE> 16 <DD> 17<PRE><CODE>void GXSetCoPlanar( <a href="../Enumerated_Types/GXBool.html">GXBool</a> enable );</CODE></PRE> 18</DL> 19<H2>Arguments</H2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1"> 21 <TBODY> 22 <TR> 23<TD width="120" bgcolor="#ffffe8"><EM><STRONG><CODE>enable</FONT></STRONG></EM></TD> 24<TD width="520">When <em><strong>enable</strong></em>=<code>GX_ENABLE</code>, coplanar mode is enabled and the last triangle rendered becomes the reference plane. If <em><strong>enable</strong></em>=<code>GX_DISABLE</code> coplanar mode is disabled.</TD> 25 </TR> 26 </TBODY> 27</TABLE> 28<H2>Return Values</H2> 29<P>None.</P> 30<H2>Description</H2> 31<P>This function <code><em><strong>enables</strong></em></code> coplanar triangle processing. Coplanar mode should be enabled immediately <strong>after</strong> a <em>reference</em> triangle is drawn. While coplanar mode is enabled, all subsequent triangles (called <em>decal triangles</em>) will have the same <EM>Z</EM> coefficients as the reference plane.</P> 32<P><B>Note:</B> The reference triangle can be culled using:</P> 33<P><code><a href="GXSetCullMode.html">GXSetCullMode</a>(GX_CULL_ALL);</code></P> 34<P>to create an invisible reference plane. However, the reference triangle must not be completely out of view, i.e. trivially rejected by clipping.</P> 35<P><a href="../Management/GXInit.html"><code>GXInit</code></a> disables coplanar mode.</P> 36<H2>See Also</H2> 37<P><A href="GXSetCullMode.html"><CODE>GXSetCullMode</CODE></A></P> 38<H2>Revision History</H2> 39<P>03/01/2006 Initial version.</P> 40</BODY> 41</HTML> 42