glGetBooleanv
glGetBooleanv is an OpenGL API function used to query the current boolean-valued state of the rendering context. It retrieves the value of a specified pname and returns it as one or more GLboolean values stored in the provided data buffer. The function is available in both compatibility and core profiles of OpenGL.
Prototype and parameters: void glGetBooleanv(GLenum pname, GLboolean *data). The pname parameter selects the state variable to
Behavior and usage: glGetBooleanv returns the current value of the specified state as a GLboolean. Values are
Error handling and notes: If pname does not correspond to a supported boolean-valued parameter, GL_INVALID_ENUM is