glGetString

return a string describing the current GL connection

Signature

glGetString( GLenum ( name ) )-> const GLubyte*
glGetString( name ) -> <class 'ctypes.c_char_p'>
glGetString( constant ) -> Current string value
glGetStringi( GLenum ( name ) , GLuint ( index ) )-> const GLubyte*
glGetStringi( name , index ) -> <class 'ctypes.c_char_p'>

Parameters

VariablesDescription
name
Specifies a symbolic constant, one of GL_VENDOR , GL_RENDERER , GL_VERSION , or GL_SHADING_LANGUAGE_VERSION . Additionally, glGetStringi accepts the GL_EXTENSIONS token.
index
For glGetStringi , specifies the index of the string to return.

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.

glGetString
OpenGLContext tests/glget_with_fonts.py Lines: 39, 42
OpenGLContext OpenGLContext/extensionmanager.py Lines: 2, 88
OpenGLContext OpenGLContext/debug/state.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 278, 279, 280, 281
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 264
{LGPL} VisionEgg test/opengl_info.py Lines: 90, 91, 92, 94
{LGPL} VisionEgg VisionEgg/PlatformDependent.py Lines: 222, 223
{LGPL} VisionEgg VisionEgg/Core.py Lines: 325, 326, 327
{LGPL} PyMT pymt/tools/benchmark.py Lines: 240, 241, 242
{LGPL} PyMT pymt/tools/dump.py Lines: 49, 50, 51, 52
{LGPL} PyMT pymt/ui/window/__init__.py Lines: 18, 297
Visvis core/misc.py Lines: 83, 87, 88, 89, 90