1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXSetCullMode</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetCullMode</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre></dd>
20<dd><pre><CODE>void GXSetCullMode( <a href="../Enumerated_Types/GXCullMode.html">GXCullMode</a> mode );</CODE></pre></dd>
21</dl><h2>Arguments</h2>
22<TABLE border="1" cellpadding="3" cellspacing="0.1">
23  <tr>
24<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>mode</font></strong></em></TD>
25<TD width="520">Culling <a href="../Enumerated_Types/GXCullMode.html">mode</a>.&nbsp;Accepted values are:<br>
26      <TABLE width="500" border="1" cellspacing="0.1">
27
28          <tr>
29<TD width="150" bgcolor="#C0C0C0">Name</TD>
30<TD width="350" bgcolor="#C0C0C0">Culling mode</TD>
31          </tr>
32          <tr>
33<TD width="150"> <code>GX_CULL_NONE</code></TD>
34<TD width="350">No culling</TD>
35          </tr>
36          <tr>
37<TD width="150"><code>GX_CULL_FRONT</code></TD>
38<TD width="350">Front-facing polygons are culled</TD>
39          </tr>
40          <tr>
41<TD width="150"><code>GX_CULL_BACK</code></TD>
42<TD width="350">Back-facing polygons are culled</TD>
43          </tr>
44          <tr>
45<TD width="150"><code>GX_CULL_ALL</code></TD>
46<TD width="350">All polygons are culled</TD>
47          </tr>
48
49      </TABLE>
50      </TD>
51    </tr>
52</TABLE>
53<h2>Return Values</h2>
54
55<p>None.</p>
56<H2>Description</H2>
57<P>This function enables or disables culling of geometry based on its orientation to the viewer.&nbsp;Primitives in which the vertex order is clockwise to the viewer are considered front-facing.</P>
58<P><a href="../Management/GXInit.html"><code>GXInit</code></a> sets mode to <code>GX_CULL_BACK</code>.</P>
59
60<h2>See Also</h2>
61
62<p><a href="GXSetCoPlanar.html"><CODE>GXSetCoPlanar</CODE></a></p>
63<H2>Revision History</H2>
64<P>03/01/2006 Initial version.</P>
65</BODY>
66</HTML>
67