logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glPointSize - specify the diameter of rasterized points

Associated Gets

glGet() with argument GL_POINT_SIZE_RANGEglGet() with argument GL_POINT_SIZE_GRANULARITYglGet() with argument GL_POINT_SIZEglGet() with argument GL_POINT_FADE_THRESHOLD_SIZEglIsEnabled() with argument GL_PROGRAM_POINT_SIZE

C Specification

voidglPointSize(GLfloatsize);

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.

Errors

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

Name

       glPointSize - specify the diameter of rasterized points

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.

Parameters

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

See Also

glEnable(), glPointParameter()

Version Support

       ┌─────────────┬───────────────────────────────────────────────────────────────────────┐
       │             │                OpenGLVersion                                         │
       ├─────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /           │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature     │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name        │     │     │     │     │     │     │     │     │     │     │     │     │
       ├─────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glPointSize │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └─────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also