~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/doc/man/GL/gl/pointsize.3gl

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" e
 
2
'\"! eqn | mmdoc
 
3
'\"macro stdmacro
 
4
.ds Vn Version 1.2
 
5
.ds Dt 24 September 1999
 
6
.ds Re Release 1.2.1
 
7
.ds Dp Jan 14 18:30
 
8
.ds Dm 01 pointsize
 
9
.ds Xs 46128 6 pointsize.gl
 
10
.TH GLPOINTSIZE 3G
 
11
.SH NAME
 
12
.B "glPointSize
 
13
\- specify the diameter of rasterized points
 
14
 
 
15
.SH C SPECIFICATION
 
16
void \f3glPointSize\fP(
 
17
GLfloat \fIsize\fP )
 
18
.nf
 
19
.fi
 
20
 
 
21
.EQ
 
22
delim $$
 
23
.EN
 
24
.SH PARAMETERS
 
25
.TP \w'\f2size\fP\ \ 'u 
 
26
\f2size\fP
 
27
Specifies the diameter of rasterized points.
 
28
The initial value is 1.
 
29
.SH DESCRIPTION
 
30
\%\f3glPointSize\fP specifies the rasterized diameter of both aliased and antialiased
 
31
points.
 
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.
 
37
.P
 
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,
 
44
then the center point
 
45
($ x $, $ y $)
 
46
of the pixel fragment that represents the point is computed as
 
47
.sp
 
48
.ce
 
49
( $ \(lf ~ x sub w ~ \(rf ~+~ .5 $, $ \(lf ~ y sub w ~ \(rf ~+~ .5 $)
 
50
.sp
 
51
where $w$ subscripts indicate window coordinates.
 
52
All pixels that lie within the square grid of the rounded size centered at
 
53
($ x $, $ y $)
 
54
make up the fragment.
 
55
If the size is even,
 
56
the center point is
 
57
.sp
 
58
.ce
 
59
( $ \(lf ~ x sub w ~+~ .5 ~ \(rf$, $ \(lf ~ y sub w ~+~ .5 ~ \(rf $)
 
60
.sp
 
61
and the rasterized fragment's centers are the half-integer window coordinates
 
62
within the square of the rounded size centered at
 
63
($ x $, $ y $).
 
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.
 
67
.P
 
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.
 
78
.P
 
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.
 
93
.SH NOTES
 
94
The point size specified by \%\f3glPointSize\fP is always returned when \%\f3GL_POINT_SIZE\fP
 
95
is queried.
 
96
Clamping and rounding for aliased and antialiased points have no effect
 
97
on the specified value.
 
98
.P
 
99
A non-antialiased point size may be clamped to an implementation-dependent
 
100
maximum.
 
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.
 
104
.P
 
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.
 
109
.SH ERRORS
 
110
\%\f3GL_INVALID_VALUE\fP is generated if \f2size\fP is less than or equal to 0.
 
111
.P
 
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.
 
115
.SH ASSOCIATED GETS
 
116
\%\f3glGet\fP with argument \%\f3GL_POINT_SIZE\fP
 
117
.br
 
118
\%\f3glGet\fP with argument \%\f3GL_ALIASED_POINT_SIZE_RANGE\fP
 
119
.br
 
120
\%\f3glGet\fP with argument \%\f3GL_ALIASED_POINT_SIZE_GRANULARITY\fP
 
121
.br
 
122
\%\f3glGet\fP with argument \%\f3GL_SMOOTH_POINT_SIZE_RANGE\fP
 
123
.br
 
124
\%\f3glGet\fP with argument \%\f3GL_SMOOTH_POINT_SIZE_GRANULARITY\fP
 
125
.br
 
126
\%\f3glIsEnabled\fP with argument \%\f3GL_POINT_SMOOTH\fP
 
127
.SH SEE ALSO
 
128
\%\f3glEnable(3G)\fP