2014-03-28 19:06:55 +00:00
<!DOCTYPE refentry [ <!ENTITY % mathent SYSTEM "math.ent"> %mathent; ]>
<!-- Converted by db4 - upgrade version 1.1 -->
<refentry xmlns= "http://docbook.org/ns/docbook" version= "5.0" xml:id= "glCullFace" >
<info >
2013-11-03 11:43:50 +00:00
<copyright >
<year > 1991-2006</year>
<holder > Silicon Graphics, Inc.</holder>
</copyright>
2013-12-15 21:32:32 +00:00
<copyright >
2014-03-28 19:06:55 +00:00
<year > 2010-2014</year>
2013-12-15 21:32:32 +00:00
<holder > Khronos Group</holder>
</copyright>
2014-03-28 19:06:55 +00:00
</info>
2009-03-08 00:46:58 +00:00
<refmeta >
<refentrytitle > glCullFace</refentrytitle>
<manvolnum > 3G</manvolnum>
</refmeta>
<refnamediv >
<refname > glCullFace</refname>
2014-03-28 19:06:55 +00:00
<refpurpose > specify whether front- or back-facing polygons can be culled</refpurpose>
2009-03-08 00:46:58 +00:00
</refnamediv>
2014-03-28 19:06:55 +00:00
<refsynopsisdiv >
<title > C Specification</title>
2009-03-08 00:46:58 +00:00
<funcsynopsis >
<funcprototype >
<funcdef > void <function > glCullFace</function> </funcdef>
<paramdef > GLenum <parameter > mode</parameter> </paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "parameters" > <title > Parameters</title>
2009-03-08 00:46:58 +00:00
<variablelist >
<varlistentry >
<term > <parameter > mode</parameter> </term>
<listitem >
<para >
2014-03-28 19:06:55 +00:00
Specifies whether front- or back-facing polygons are candidates for culling.
2009-03-08 00:46:58 +00:00
Symbolic constants
<constant > GL_FRONT</constant> , <constant > GL_BACK</constant> , and <constant > GL_FRONT_AND_BACK</constant> are accepted.
The initial value is <constant > GL_BACK</constant> .
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "description" > <title > Description</title>
2009-03-08 00:46:58 +00:00
<para >
2014-03-28 19:06:55 +00:00
<function > glCullFace</function> specifies whether front- or back-facing polygons are culled
(as specified by <emphasis > mode</emphasis> ) when polygon culling is enabled. Polygon
2009-03-08 00:46:58 +00:00
culling is initially disabled.
2014-03-28 19:06:55 +00:00
To enable and disable polygon culling, call the
2009-03-08 00:46:58 +00:00
<citerefentry > <refentrytitle > glEnable</refentrytitle> </citerefentry> and <citerefentry > <refentrytitle > glDisable</refentrytitle> </citerefentry> commands
with the argument <constant > GL_CULL_FACE</constant> .
</para>
<para >
2014-03-28 19:06:55 +00:00
<citerefentry > <refentrytitle > glFrontFace</refentrytitle> </citerefentry> specifies which of the clockwise and counterclockwise polygons
2009-03-08 00:46:58 +00:00
are front-facing and back-facing.
See <citerefentry > <refentrytitle > glFrontFace</refentrytitle> </citerefentry> .
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "notes" > <title > Notes</title>
2009-03-08 00:46:58 +00:00
<para >
2014-03-28 19:06:55 +00:00
If <parameter > mode</parameter> is <constant > GL_FRONT_AND_BACK</constant> , no polygons are drawn, but other
2009-03-08 00:46:58 +00:00
primitives such as points and lines are drawn.
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "errors" > <title > Errors</title>
2009-03-08 00:46:58 +00:00
<para >
<constant > GL_INVALID_ENUM</constant> is generated if <parameter > mode</parameter> is not an accepted value.
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "associatedgets" > <title > Associated Gets</title>
2009-03-08 00:46:58 +00:00
<para >
<citerefentry > <refentrytitle > glIsEnabled</refentrytitle> </citerefentry> with argument <constant > GL_CULL_FACE</constant>
</para>
<para >
<citerefentry > <refentrytitle > glGet</refentrytitle> </citerefentry> with argument <constant > GL_CULL_FACE_MODE</constant>
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "versions" >
<title > API Version Support</title>
<informaltable >
<tgroup cols= "4" align= "left" >
<xi:include xmlns:xi= "http://www.w3.org/2001/XInclude" href= "apifunchead.xml" xpointer= "xpointer(/*/*)" />
<tbody >
<row >
<entry > glCullFace</entry>
<xi:include xmlns:xi= "http://www.w3.org/2001/XInclude" href= "apiversion.xml" xpointer= "xpointer(/*/*[@role='es20']/*)" />
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 xml:id= "seealso" > <title > See Also</title>
2009-03-08 00:46:58 +00:00
<para >
<citerefentry > <refentrytitle > glEnable</refentrytitle> </citerefentry> ,
<citerefentry > <refentrytitle > glFrontFace</refentrytitle> </citerefentry>
</para>
</refsect1>
2014-03-28 19:06:55 +00:00
<refsect1 xml:id= "Copyright" > <title > Copyright</title>
2009-03-08 00:46:58 +00:00
<para >
2014-03-28 19:06:55 +00:00
Copyright <trademark class= "copyright" /> 1991-2006 Silicon Graphics, Inc.
Copyright <trademark class= "copyright" /> 2010-2014 Khronos Group.
2013-12-15 21:32:32 +00:00
This document is licensed under the SGI Free Software B License.
For details, see
2014-03-28 19:06:55 +00:00
<link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "http://oss.sgi.com/projects/FreeB/" > http://oss.sgi.com/projects/FreeB/</link> .
2009-03-08 00:46:58 +00:00
</para>
</refsect1>
</refentry>