| ||||||||

| ||||||||

| ||||||||

Description | ||||||||

This module corresponds to section 3.3 (Points) of the OpenGL 1.5 specs. | ||||||||

Synopsis | ||||||||

Point Rasterization | ||||||||

pointSize :: StateVar GLfloat | ||||||||

The specified point size is multiplied with a distance attenuation factor
and clamped to the specified
where If multisampling is disabled, the computed point size is used as the point's width. If multisampling is enabled, the point may be faded by modifying the point
alpha value (see
The point alpha value is modified by computing:
If point antialiasing is disabled, the actual size is determined by rounding
the supplied size to the nearest integer. (If the rounding results in the
value 0, it is as if the point size were 1.) If the rounded size is odd,
then the center point ( ( where ( and the rasterized fragment's centers are the half-integer window
coordinates within the square of the rounded size centered at ( If antialiasing is enabled, then point rasterization produces a fragment for
each pixel square that intersects the region lying within the circle having
diameter equal to the current point size and centered at the point's
( Not all sizes are supported when point antialiasing is enabled. If an
unsupported size is requested, the nearest supported size is used. Only size
1 is guaranteed to be supported; others depend on the implementation. To
query the range of supported sizes for antialiased points and the size
difference between supported sizes within the range, query
The point size specified when A non-antialiased point size may be clamped to an implementation-dependent maximum. Although this maximum cannot be queried, it must be no less than the maximum value for antialiased points, rounded to the nearest integer value. An An | ||||||||

Controlling the Derived Size | ||||||||

pointSizeRange :: StateVar (GLfloat, GLfloat) | ||||||||

The range to which the derived point size is clamped, see An | ||||||||

pointDistanceAttenuation :: StateVar (GLfloat, GLfloat, GLfloat) | ||||||||

The constant, linear, and quadratic distance attenuation coefficients, see
pointSize. The initial coefficients are (1, 0, 0).
| ||||||||

Fading Points | ||||||||

pointFadeThresholdSize :: StateVar GLfloat | ||||||||

The threshold for alpha attenuation of points when multisampling is used,
see An | ||||||||

Point Antialiasing | ||||||||

pointSmooth :: StateVar Capability | ||||||||

Controls whether point antialiasing is enabled. The initial state is
Disabled.
| ||||||||

Point Sprites | ||||||||

pointSprite :: StateVar Capability | ||||||||

Controls whether point sprites are enabled. The initial state is
Disabled. When point sprites are
enabled, the state of point antialiasing (i.e. pointSmooth) is ignored.
| ||||||||

Implementation-Dependent Limits | ||||||||

aliasedPointSizeRange :: GettableStateVar (GLfloat, GLfloat) | ||||||||

The smallest and largest supported size of aliased points. | ||||||||

smoothPointSizeRange :: GettableStateVar (GLfloat, GLfloat) | ||||||||

The smallest and largest supported size of antialiased points. | ||||||||

smoothPointSizeGranularity :: GettableStateVar GLfloat | ||||||||

The antialiased point size granularity, i.e. the size difference between supported sizes. | ||||||||

Produced by Haddock version 0.7 |