rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man2 / glEdgeFlag.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4<refentry id="glEdgeFlag">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>1991-2006</year>
9 <holder>Silicon Graphics, Inc.</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>glEdgeFlag</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>glEdgeFlag</refname>
17 <refpurpose>flag edges as either boundary or nonboundary</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>C Specification</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>void <function>glEdgeFlag</function></funcdef>
23 <paramdef>GLboolean <parameter>flag</parameter></paramdef>
24 </funcprototype>
25 </funcsynopsis>
26 </refsynopsisdiv>
27 <refsect1 id="parameters"><title>Parameters</title>
28 <variablelist>
29 <varlistentry>
30 <term><parameter>flag</parameter></term>
31 <listitem>
32 <para>
33 Specifies the current edge flag value,
34 either <constant>GL_TRUE</constant> or <constant>GL_FALSE</constant>. The initial value is <constant>GL_TRUE</constant>.
35 </para>
36 </listitem>
37 </varlistentry>
38 </variablelist>
39 </refsect1>
40 <refsynopsisdiv><title>C Specification</title>
41 <funcsynopsis>
42 <funcprototype>
43 <funcdef>void <function>glEdgeFlagv</function></funcdef>
44 <paramdef>const GLboolean * <parameter>flag</parameter></paramdef>
45 </funcprototype>
46 </funcsynopsis>
47 </refsynopsisdiv>
48 <refsect1 id="parameters2"><title>Parameters</title>
49 <variablelist>
50 <varlistentry>
51 <term><parameter>flag</parameter></term>
52 <listitem>
53 <para>
54 Specifies a pointer to an array that contains a single boolean element,
55 which replaces the current edge flag value.
56 </para>
57 </listitem>
58 </varlistentry>
59 </variablelist>
60 </refsect1>
61 <refsect1 id="description"><title>Description</title>
62 <para>
63 Each vertex of a polygon,
64 separate triangle,
65 or separate quadrilateral specified between a <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry>/<citerefentry><refentrytitle>glEnd</refentrytitle></citerefentry> pair
66 is marked as the start of either a boundary or nonboundary edge.
67 If the current edge flag is true when the vertex is specified,
68 the vertex is marked as the start of a boundary edge.
69 Otherwise, the vertex is marked as the start of a nonboundary edge.
70 <function>glEdgeFlag</function> sets the edge flag bit to <constant>GL_TRUE</constant> if <parameter>flag</parameter> is <constant>GL_TRUE</constant>
71 and to <constant>GL_FALSE</constant> otherwise.
72 </para>
73 <para>
74 The vertices of connected triangles and connected quadrilaterals are always
75 marked as boundary,
76 regardless of the value of the edge flag.
77 </para>
78 <para>
79 Boundary and nonboundary edge flags on vertices are significant only if
80 <constant>GL_POLYGON_MODE</constant> is set to <constant>GL_POINT</constant> or <constant>GL_LINE</constant>.
81 See <citerefentry><refentrytitle>glPolygonMode</refentrytitle></citerefentry>.
82 </para>
83 </refsect1>
84 <refsect1 id="notes"><title>Notes</title>
85 <para>
86 The current edge flag can be updated at any time.
87 In particular,
88 <function>glEdgeFlag</function> can be called between a call to <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry> and the corresponding
89 call to <citerefentry><refentrytitle>glEnd</refentrytitle></citerefentry>.
90 </para>
91 </refsect1>
92 <refsect1 id="associatedgets"><title>Associated Gets</title>
93 <para>
94 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_EDGE_FLAG</constant>
95 </para>
96 </refsect1>
97 <refsect1 id="seealso"><title>See Also</title>
98 <para>
99 <citerefentry><refentrytitle>glBegin</refentrytitle></citerefentry>,
100 <function>glEdgeFlagPointer</function>,
101 <citerefentry><refentrytitle>glPolygonMode</refentrytitle></citerefentry>
102 </para>
103 </refsect1>
104 <refsect1 id="Copyright"><title>Copyright</title>
105 <para>
106 Copyright <trademark class="copyright"></trademark> 1991-2006
107 Silicon Graphics, Inc. This document is licensed under the SGI
108 Free Software B License. For details, see
109 <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>.
110 </para>
111 </refsect1>
112</refentry>