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

glPointParameter - specify point parameters

Associated Gets

glGet() with argument GL_POINT_FADE_THRESHOLD_SIZEglGet() with argument GL_POINT_SPRITE_COORD_ORIGIN

C Specification

voidglPointParameterf(GLenumpname,GLfloatparam);voidglPointParameteri(GLenumpname,GLintparam);voidglPointParameterfv(GLenumpname,constGLfloat*params);voidglPointParameteriv(GLenumpname,constGLint*params);

Description

       The following values are accepted for pname:

       GL_POINT_FADE_THRESHOLD_SIZEparams is a single floating-point value that specifies the threshold value to which point sizes are
           clamped if they exceed the specified value. The default value is 1.0.

       GL_POINT_SPRITE_COORD_ORIGINparams is a single enum specifying the point sprite texture coordinate origin, either GL_LOWER_LEFT
           or GL_UPPER_LEFT. The default value is GL_UPPER_LEFT.

Errors

GL_INVALID_VALUE is generated if the value specified for GL_POINT_FADE_THRESHOLD_SIZE is less than zero.

       GL_INVALID_ENUM is generated If the value specified for GL_POINT_SPRITE_COORD_ORIGIN is not GL_LOWER_LEFT
       or GL_UPPER_LEFT.

Name

       glPointParameter - specify point parameters

Parameters

pname
           Specifies a single-valued point parameter.  GL_POINT_FADE_THRESHOLD_SIZE, and
           GL_POINT_SPRITE_COORD_ORIGIN are accepted.

       param
           For glPointParameterf and glPointParameteri, specifies the value that pname will be set to.

       params
           For glPointParameterfv and glPointParameteriv, specifies a pointer to an array where the value or
           values to be assigned to pname are stored.

See Also

glPointSize()

Version Support

       ┌────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                    │                OpenGLVersion                                         │
       ├────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                  │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature            │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name               │     │     │     │     │     │     │     │     │     │     │     │     │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glPointParameterf  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glPointParameterfv │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glPointParameteri  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       ├────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glPointParameteriv │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also