5
.ds Dt 24 September 1999
9
.ds Xs 46128 6 pointsize.gl
13
\- specify the diameter of rasterized points
16
void \f3glPointSize\fP(
25
.TP \w'\f2size\fP\ \ 'u
27
Specifies the diameter of rasterized points.
28
The initial value is 1.
30
\%\f3glPointSize\fP specifies the rasterized diameter of both aliased and antialiased
32
Using a point size other than 1 has different effects,
33
depending on whether point antialiasing is enabled.
34
To enable and disable point antialiasing, call
35
\%\f3glEnable\fP and \%\f3glDisable\fP
36
with argument \%\f3GL_POINT_SMOOTH\fP. Point antialiasing is initially disabled.
38
If point antialiasing is disabled,
39
the actual size is determined by rounding the supplied size
40
to the nearest integer.
41
(If the rounding results in the value 0,
42
it is as if the point size were 1.)
43
If the rounded size is odd,
46
of the pixel fragment that represents the point is computed as
49
( $ \(lf ~ x sub w ~ \(rf ~+~ .5 $, $ \(lf ~ y sub w ~ \(rf ~+~ .5 $)
51
where $w$ subscripts indicate window coordinates.
52
All pixels that lie within the square grid of the rounded size centered at
59
( $ \(lf ~ x sub w ~+~ .5 ~ \(rf$, $ \(lf ~ y sub w ~+~ .5 ~ \(rf $)
61
and the rasterized fragment's centers are the half-integer window coordinates
62
within the square of the rounded size centered at
64
All pixel fragments produced in rasterizing a nonantialiased point are
65
assigned the same associated data,
66
that of the vertex corresponding to the point.
68
If antialiasing is enabled,
69
then point rasterization produces a fragment for each pixel square
70
that intersects the region lying within the circle having diameter
71
equal to the current point size and centered at the point's
72
($ x sub w $, $ y sub w $).
73
The coverage value for each fragment is the window coordinate area
74
of the intersection of the circular region with the corresponding pixel square.
75
This value is saved and used in the final rasterization step.
76
The data associated with each fragment is the data associated with
77
the point being rasterized.
79
Not all sizes are supported when point antialiasing is enabled.
80
If an unsupported size is requested,
81
the nearest supported size is used.
82
Only size 1 is guaranteed to be supported;
83
others depend on the implementation.
84
To query the range of supported sizes and the size difference between
85
supported sizes within the range, call
86
\%\f3glGet\fP with arguments
87
\%\f3GL_SMOOTH_POINT_SIZE_RANGE\fP and
88
\%\f3GL_SMOOTH_POINT_SIZE_GRANULARITY\fP.
89
For aliased points, query the supported ranges and granularity with
90
\%\f3glGet\fP with arguments
91
\%\f3GL_ALIASED_POINT_SIZE_RANGE\fP and
92
\%\f3GL_ALIASED_POINT_SIZE_GRANULARITY\fP.
94
The point size specified by \%\f3glPointSize\fP is always returned when \%\f3GL_POINT_SIZE\fP
96
Clamping and rounding for aliased and antialiased points have no effect
97
on the specified value.
99
A non-antialiased point size may be clamped to an implementation-dependent
101
Although this maximum cannot be queried,
102
it must be no less than the maximum value for antialiased points,
103
rounded to the nearest integer value.
105
\%\f3GL_POINT_SIZE_RANGE\fP and \%\f3GL_POINT_SIZE_GRANULARITY\fP are
106
deprecated in GL versions 1.2 and greater. Their functionality has been
107
replaced by \%\f3GL_SMOOTH_POINT_SIZE_RANGE\fP and
108
\%\f3GL_SMOOTH_POINT_SIZE_GRANULARITY\fP.
110
\%\f3GL_INVALID_VALUE\fP is generated if \f2size\fP is less than or equal to 0.
112
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glPointSize\fP
113
is executed between the execution of \%\f3glBegin\fP
114
and the corresponding execution of \%\f3glEnd\fP.
116
\%\f3glGet\fP with argument \%\f3GL_POINT_SIZE\fP
118
\%\f3glGet\fP with argument \%\f3GL_ALIASED_POINT_SIZE_RANGE\fP
120
\%\f3glGet\fP with argument \%\f3GL_ALIASED_POINT_SIZE_GRANULARITY\fP
122
\%\f3glGet\fP with argument \%\f3GL_SMOOTH_POINT_SIZE_RANGE\fP
124
\%\f3glGet\fP with argument \%\f3GL_SMOOTH_POINT_SIZE_GRANULARITY\fP
126
\%\f3glIsEnabled\fP with argument \%\f3GL_POINT_SMOOTH\fP