/
glPointParameter.xhtml
46 lines (46 loc) · 5.87 KB
/
glPointParameter.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<div class="refentry" lang="en" xml:lang="en"><a id="glPointParameter"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glPointParameter — specify point parameters</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glPointParameterf</b>(</code></td><td>GLenum </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLfloat </td><td><var class="pdparam">param</var><code>)</code>;</td></tr></table></div><p></p><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glPointParameteri</b>(</code></td><td>GLenum </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLint </td><td><var class="pdparam">param</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>pname</code></em></span></dt><dd><p>
Specifies a single-valued point parameter.
<code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code>, and
<code class="constant">GL_POINT_SPRITE_COORD_ORIGIN</code>
are accepted.
</p></dd><dt><span class="term"><em class="parameter"><code>param</code></em></span></dt><dd><p>
Specifies the value that <em class="parameter"><code>pname</code></em> will be set to.
</p></dd></dl></div></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glPointParameterfv</b>(</code></td><td>GLenum </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>const GLfloat * </td><td><var class="pdparam">params</var><code>)</code>;</td></tr></table></div><p></p><div class="funcsynopsis"><table><tr><td><code class="funcdef">void <b class="fsfunc">glPointParameteriv</b>(</code></td><td>GLenum </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>const GLint * </td><td><var class="pdparam">params</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters2"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>pname</code></em></span></dt><dd><p>
Specifies a point parameter.
<code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code>, and
<code class="constant">GL_POINT_SPRITE_COORD_ORIGIN</code>
are accepted.
</p></dd><dt><span class="term"><em class="parameter"><code>params</code></em></span></dt><dd><p>
Specifies the value to be assigned to <em class="parameter"><code>pname</code></em>..
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
The following values are accepted for <em class="parameter"><code>pname</code></em>:
</p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code></span></dt><dd><p>
</p><p>
<em class="parameter"><code>params</code></em> is a single floating-point value that specifies the threshold value
to which point sizes are clamped if they exceed the specified value. The
default value is 1.0.
</p></dd><dt><span class="term"><code class="constant">GL_POINT_SPRITE_COORD_ORIGIN</code></span></dt><dd><p>
</p><p>
<em class="parameter"><code>params</code></em> is a single enum specifying the point sprite texture coordinate origin, either <code class="constant">GL_LOWER_LEFT</code> or <code class="constant">GL_UPPER_LEFT</code>.
The default value is <code class="constant">GL_UPPER_LEFT</code>.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
<code class="constant">GL_INVALID_VALUE</code> is generated if the value specified for
<code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code> is less than zero.
</p><p>
<code class="constant">GL_INVALID_ENUM</code> is generated If the value specified for
<code class="constant">GL_POINT_SPRITE_COORD_ORIGIN</code> is not <code class="constant">GL_LOWER_LEFT</code> or <code class="constant">GL_UPPER_LEFT</code>.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
<a href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_POINT_FADE_THRESHOLD_SIZE</code>
</p><p>
<a href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_POINT_SPRITE_COORD_ORIGIN</code>
</p></div>
{$pipelinestall}{$examples}
<div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
<a href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>
</p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
Copyright © 1991-2006
Silicon Graphics, Inc. Copyright © 2010
Khronos Group. This document is licensed under the SGI
Free Software B License. For details, see
<a href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
</p></div></div></div>