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

glGetPointerv - return the address of the specified pointer

C Specification

voidglGetPointerv(GLenumpname,GLvoid**params);

Description

glGetPointerv returns pointer information.  pname indicates the pointer to be returned, and params is a
       pointer to a location in which to place the returned data. The parameters that may be queried include:

       GL_DEBUG_CALLBACK_FUNCTION
           Returns the current callback function set with the callback argument of glDebugMessageCallback().

       GL_DEBUG_CALLBACK_USER_PARAM
           Returns the user parameter to the current callback function set with the userParam argument of
           glDebugMessageCallback().

Errors

GL_INVALID_ENUM is generated if pname is not an accepted value.

Name

       glGetPointerv - return the address of the specified pointer

Notes

glGetPointerv is available in the OpenGL core profile only if the GL version is 4.3 or later. It is
       available in the compatibility profile for all GL versions, and accepts additional queries. However,
       these reference pages document only the core profile.

Parameters

pname
           Specifies the pointer to be returned. Must be one of GL_DEBUG_CALLBACK_FUNCTION or
           GL_DEBUG_CALLBACK_USER_PARAM.

       params
           Returns the pointer value specified by pname.

See Also

glDebugMessageCallback()

Version Support

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

See Also