glPointSize

specify the diameter of rasterized points

Signature

glPointSize( GLfloat ( size ) )-> void
glPointSize( size )

Parameters

VariablesDescription
size
Specifies the diameter of rasterized points. The initial value is 1.

Description

glPointSize specifies the rasterized diameter of points. If point size mode is disabled (see glEnable with parameter GL_PROGRAM_POINT_SIZE ), this value will be used to rasterize points. Otherwise, the value written to the shading language built-in variable
gl_PointSize
will be used.

Notes

The point size specified by glPointSize is always returned when GL_POINT_SIZE is queried. Clamping and rounding for points have no effect on the specified value.

Errors

GL_INVALID_VALUE is generated if size is less than or equal to 0.

Associated Gets

glGet with argument GL_POINT_SIZE_RANGE
glGet with argument GL_POINT_SIZE_GRANULARITY
glGet with argument GL_POINT_SIZE
glGet with argument GL_POINT_FADE_THRESHOLD_SIZE
glIsEnabled with argument GL_PROGRAM_POINT_SIZE

Version Support

glPointSize

See Also

Copyright

Copyright
1991-2006 Silicon Graphics, Inc. Copyright
2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see .

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glPointSize
OpenGLContext OpenGLContext/scenegraph/pointset.py Lines: 74, 88
{LGPL} VisionEgg VisionEgg/Dots.py Lines: 238, 362
{LGPL} PyMT examples/apps/particles/particles.py Lines: 187
{LGPL} PyMT pymt/graphx/paint.py Lines: 17, 104
{LGPL} Pyggel pyggel/particle.py Lines: 270
{LGPL} Pyggel pyggel/view.py Lines: 172
{LGPL} pygl2d pygl2d/draw.py Lines: 76, 85, 95
Visvis wobjects/textures.py Lines: 750, 1187
Visvis functions/boxplot.py Lines: 306
Visvis wibjects/sliders.py Lines: 393
Visvis wibjects/colorWibjects.py Lines: 533
Visvis core/line.py Lines: 91, 758, 774, 779, 789, 849
Visvis core/baseWibjects.py Lines: 192