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

« back to all changes in this revision

Viewing changes to unix/xc/extras/ogl-sample/main/doc/man/mangl/standard/pointsize.gl

  • 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
_C_ License Applicability. Except to the extent portions of this file are
 
2
_C_ made subject to an alternative license as permitted in the SGI Free
 
3
_C_ Software License B, Version 1.1 (the "License"), the contents of this
 
4
_C_ file are subject only to the provisions of the License. You may not use
 
5
_C_ this file except in compliance with the License. You may obtain a copy
 
6
_C_ of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
 
7
_C_ Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
 
8
_C_ 
 
9
_C_ http://oss.sgi.com/projects/FreeB
 
10
_C_ 
 
11
_C_ Note that, as provided in the License, the Software is distributed on an
 
12
_C_ "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
 
13
_C_ DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
 
14
_C_ CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
 
15
_C_ PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
 
16
_C_ 
 
17
_C_ Original Code. The Original Code is: OpenGL Sample Implementation,
 
18
_C_ Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
 
19
_C_ Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
 
20
_C_ Copyright in any portions created by third parties is as indicated
 
21
_C_ elsewhere herein. All Rights Reserved.
 
22
_C_ 
 
23
_C_ Additional Notice Provisions: The application programming interfaces
 
24
_C_ established by SGI in conjunction with the Original Code are The
 
25
_C_ OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
 
26
_C_ April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
 
27
_C_ 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
 
28
_C_ Window System(R) (Version 1.3), released October 19, 1998. This software
 
29
_C_ was created using the OpenGL(R) version 1.2.1 Sample Implementation
 
30
_C_ published by SGI, but has not been independently verified as being
 
31
_C_ compliant with the OpenGL(R) version 1.2.1 Specification.
 
32
_C_
 
33
_C_ The first character in this file must be an '_'!
 
34
_C_ Anything on a line after _C_ is ignored
 
35
_define(_filters,eqn)_C_
 
36
_C_      eqn is automatically replaced with neqn for nroff
 
37
_header(PointSize,specify the diameter of rasterized points)
 
38
_names(PointSize)
 
39
.EQ
 
40
delim $$
 
41
.EN
 
42
.SH PARAMETERS
 
43
_phead(_param1)
 
44
Specifies the diameter of rasterized points.
 
45
The initial value is 1.
 
46
.SH DESCRIPTION
 
47
_cmnd specifies the rasterized diameter of both aliased and antialiased
 
48
points.
 
49
Using a point size other than 1 has different effects,
 
50
depending on whether point antialiasing is enabled.
 
51
To enable and disable point antialiasing, call 
 
52
_cmnd(Enable) and _cmnd(Disable)
 
53
with argument _const(POINT_SMOOTH). Point antialiasing is initially disabled.
 
54
.P
 
55
If point antialiasing is disabled,
 
56
the actual size is determined by rounding the supplied size
 
57
to the nearest integer.
 
58
(If the rounding results in the value 0,
 
59
it is as if the point size were 1.)
 
60
If the rounded size is odd,
 
61
then the center point
 
62
($ x $, $ y $)
 
63
of the pixel fragment that represents the point is computed as
 
64
.sp
 
65
.ce
 
66
( $ \(lf ~ x sub w ~ \(rf ~+~ .5 $, $ \(lf ~ y sub w ~ \(rf ~+~ .5 $)
 
67
.sp
 
68
where $w$ subscripts indicate window coordinates.
 
69
All pixels that lie within the square grid of the rounded size centered at
 
70
($ x $, $ y $)
 
71
make up the fragment.
 
72
If the size is even,
 
73
the center point is
 
74
.sp
 
75
.ce
 
76
( $ \(lf ~ x sub w ~+~ .5 ~ \(rf$, $ \(lf ~ y sub w ~+~ .5 ~ \(rf $)
 
77
.sp
 
78
and the rasterized fragment's centers are the half-integer window coordinates
 
79
within the square of the rounded size centered at
 
80
($ x $, $ y $).
 
81
All pixel fragments produced in rasterizing a nonantialiased point are
 
82
assigned the same associated data,
 
83
that of the vertex corresponding to the point.
 
84
.P
 
85
If antialiasing is enabled,
 
86
then point rasterization produces a fragment for each pixel square
 
87
that intersects the region lying within the circle having diameter
 
88
equal to the current point size and centered at the point's
 
89
($ x sub w $, $ y sub w $).
 
90
The coverage value for each fragment is the window coordinate area
 
91
of the intersection of the circular region with the corresponding pixel square.
 
92
This value is saved and used in the final rasterization step. 
 
93
The data associated with each fragment is the data associated with 
 
94
the point being rasterized.
 
95
.P
 
96
Not all sizes are supported when point antialiasing is enabled. 
 
97
If an unsupported size is requested,
 
98
the nearest supported size is used.
 
99
Only size 1 is guaranteed to be supported;
 
100
others depend on the implementation.
 
101
To query the range of supported sizes and the size difference between
 
102
supported sizes within the range, call
 
103
_cmnd(Get) with arguments
 
104
_const(SMOOTH_POINT_SIZE_RANGE) and
 
105
_const(SMOOTH_POINT_SIZE_GRANULARITY).
 
106
For aliased points, query the supported ranges and granularity with
 
107
_cmnd(Get) with arguments
 
108
_const(ALIASED_POINT_SIZE_RANGE) and
 
109
_const(ALIASED_POINT_SIZE_GRANULARITY).
 
110
.SH NOTES
 
111
The point size specified by _cmnd is always returned when _const(POINT_SIZE)
 
112
is queried.
 
113
Clamping and rounding for aliased and antialiased points have no effect
 
114
on the specified value.
 
115
.P
 
116
A non-antialiased point size may be clamped to an implementation-dependent
 
117
maximum.
 
118
Although this maximum cannot be queried,
 
119
it must be no less than the maximum value for antialiased points,
 
120
rounded to the nearest integer value.
 
121
.P
 
122
_const(POINT_SIZE_RANGE) and _const(POINT_SIZE_GRANULARITY) are
 
123
deprecated in GL versions 1.2 and greater.  Their functionality has been 
 
124
replaced by _const(SMOOTH_POINT_SIZE_RANGE) and 
 
125
_const(SMOOTH_POINT_SIZE_GRANULARITY).
 
126
.SH ERRORS
 
127
_const(INVALID_VALUE) is generated if _param1 is less than or equal to 0.
 
128
.P
 
129
_const(INVALID_OPERATION) is generated if _cmnd
 
130
is executed between the execution of _cmnd(Begin)
 
131
and the corresponding execution of _cmnd(End).
 
132
.SH ASSOCIATED GETS
 
133
_cmnd(Get) with argument _const(POINT_SIZE)
 
134
.br
 
135
_cmnd(Get) with argument _const(ALIASED_POINT_SIZE_RANGE)
 
136
.br
 
137
_cmnd(Get) with argument _const(ALIASED_POINT_SIZE_GRANULARITY)
 
138
.br
 
139
_cmnd(Get) with argument _const(SMOOTH_POINT_SIZE_RANGE)
 
140
.br
 
141
_cmnd(Get) with argument _const(SMOOTH_POINT_SIZE_GRANULARITY)
 
142
.br
 
143
_cmnd(IsEnabled) with argument _const(POINT_SMOOTH)
 
144
.SH SEE ALSO
 
145
_cmnd(Enable)