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=
"glPointParameter">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glPointParameter
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glPointParameter
</refname>
17 <refpurpose>specify point parameters
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glPointParameterf
</function></funcdef>
23 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
24 <paramdef>GLfloat
<parameter>param
</parameter></paramdef>
30 <funcdef>void
<function>glPointParameteri
</function></funcdef>
31 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
32 <paramdef>GLint
<parameter>param
</parameter></paramdef>
36 <!-- eqn: ignoring delim $$ -->
37 <refsect1 id=
"parameters"><title>Parameters
</title>
40 <term><parameter>pname
</parameter></term>
43 Specifies a single-valued point parameter.
44 <constant>GL_POINT_SIZE_MIN
</constant>,
45 <constant>GL_POINT_SIZE_MAX
</constant>,
46 <constant>GL_POINT_FADE_THRESHOLD_SIZE
</constant>, and
47 <constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant>
53 <term><parameter>param
</parameter></term>
56 Specifies the value that
<parameter>pname
</parameter> will be set to.
62 <refsynopsisdiv><title>C Specification
</title>
65 <funcdef>void
<function>glPointParameterfv
</function></funcdef>
66 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
67 <paramdef>const GLfloat *
<parameter>params
</parameter></paramdef>
73 <funcdef>void
<function>glPointParameteriv
</function></funcdef>
74 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
75 <paramdef>const GLint *
<parameter>params
</parameter></paramdef>
79 <refsect1 id=
"parameters2"><title>Parameters
</title>
82 <term><parameter>pname
</parameter></term>
85 Specifies a point parameter.
86 <constant>GL_POINT_SIZE_MIN
</constant>,
87 <constant>GL_POINT_SIZE_MAX
</constant>,
88 <constant>GL_POINT_DISTANCE_ATTENUATION
</constant>,
89 <constant>GL_POINT_FADE_THRESHOLD_SIZE
</constant>, and
90 <constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant>
96 <term><parameter>params
</parameter></term>
99 Specifies the value or values to be assigned to
<parameter>pname
</parameter>.
100 <constant>GL_POINT_DISTANCE_ATTENUATION
</constant> requires an array of three values.
101 All other parameters accept an array containing only a single value.
107 <refsect1 id=
"description"><title>Description
</title>
109 The following values are accepted for
<parameter>pname
</parameter>:
113 <term><constant>GL_POINT_SIZE_MIN
</constant></term>
118 <parameter>params
</parameter> is a single floating-point value that specifies the minimum point size. The default value is
0.0.
123 <term><constant>GL_POINT_SIZE_MAX
</constant></term>
128 <parameter>params
</parameter> is a single floating-point value that specifies the maximum point size. The default value is
1.0.
133 <term><constant>GL_POINT_FADE_THRESHOLD_SIZE
</constant></term>
138 <parameter>params
</parameter> is a single floating-point value that specifies the threshold value
139 to which point sizes are clamped if they exceed the specified value. The
140 default value is
1.0.
145 <term><constant>GL_POINT_DISTANCE_ATTENUATION
</constant></term>
150 <parameter>params
</parameter> is an array of three floating-point values that specify the
151 coefficients used for scaling the computed point size. The default values
153 <inlineequation><mml:math>
154 <!-- eqn: (1, 0, 0):-->
155 <mml:mfenced open=
"(" close=
")">
160 </mml:math></inlineequation>.
165 <term><constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant></term>
170 <parameter>params
</parameter> is a single enum specifying the point sprite texture coordinate origin, either
<constant>GL_LOWER_LEFT
</constant> or
<constant>GL_UPPER_LEFT
</constant>.
171 The default value is
<constant>GL_UPPER_LEFT
</constant>.
177 <refsect1 id=
"notes"><title>Notes
</title>
179 <function>glPointParameter
</function> is available only if the GL version is
1.4 or greater.
182 <constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant> is available only if the GL version is
2.0 or greater.
185 <refsect1 id=
"errors"><title>Errors
</title>
187 <constant>GL_INVALID_VALUE
</constant> is generated If the value specified for
188 <constant>GL_POINT_SIZE_MIN
</constant>,
<constant>GL_POINT_SIZE_MAX
</constant>, or
189 <constant>GL_POINT_FADE_THRESHOLD_SIZE
</constant> is less than zero.
192 <constant>GL_INVALID_ENUM
</constant> is generated If the value specified for
193 <constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant> is not
<constant>GL_LOWER_LEFT
</constant> or
<constant>GL_UPPER_LEFT
</constant>.
196 If the value for
<constant>GL_POINT_SIZE_MIN
</constant> is greater than
197 <constant>GL_POINT_SIZE_MAX
</constant>, the point size after clamping is undefined, but no
203 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
205 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_POINT_SIZE_MIN
</constant>
208 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_POINT_SIZE_MAX
</constant>
211 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_POINT_FADE_THRESHOLD_SIZE
</constant>
214 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_POINT_DISTANCE_ATTENUATION
</constant>
217 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_POINT_SPRITE_COORD_ORIGIN
</constant>
220 <refsect1 id=
"seealso"><title>See Also
</title>
222 <citerefentry><refentrytitle>glPointSize
</refentrytitle></citerefentry>
225 <refsect1 id=
"Copyright"><title>Copyright
</title>
227 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
228 Silicon Graphics, Inc. This document is licensed under the SGI
229 Free Software B License. For details, see
230 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.