1GLGETSTRING(3G) OpenGL Manual GLGETSTRING(3G)
2
3
4
6 glGetString - return a string describing the current GL connection
7
9 const GLubyte* glGetString(GLenum name);
10
12 const GLubyte* glGetStringi(GLenum name, GLuint index);
13
15 name
16 Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER,
17 GL_VERSION, or GL_SHADING_LANGUAGE_VERSION. Additionally,
18 glGetStringi accepts the GL_EXTENSIONS token.
19
20 index
21 For glGetStringi, specifies the index of the string to return.
22
24 glGetString returns a pointer to a static string describing some aspect
25 of the current GL connection. name can be one of the following:
26
27 GL_VENDOR
28
29 Returns the company responsible for this GL implementation. This
30 name does not change from release to release.
31
32 GL_RENDERER
33
34 Returns the name of the renderer. This name is typically specific
35 to a particular configuration of a hardware platform. It does not
36 change from release to release.
37
38 GL_VERSION
39
40 Returns a version or release number.
41
42 GL_SHADING_LANGUAGE_VERSION
43
44 Returns a version or release number for the shading language.
45
46 glGetStringi returns a pointer to a static string indexed by index.
47 name can be one of the following:
48
49 GL_EXTENSIONS
50
51 For glGetStringi only, returns the extension string supported by
52 the implementation at index.
53
54 Strings GL_VENDOR and GL_RENDERER together uniquely specify a platform.
55 They do not change from release to release and should be used by
56 platform-recognition algorithms.
57
58 The GL_VERSION and GL_SHADING_LANGUAGE_VERSION strings begin with a
59 version number. The version number uses one of these forms:
60
61 major_number.minor_numbermajor_number.minor_number.release_number
62
63 Vendor-specific information may follow the version number. Its format
64 depends on the implementation, but a space always separates the version
65 number and the vendor-specific information.
66
67 All strings are null-terminated.
68
70 If an error is generated, glGetString returns 0.
71
72 The client and server may support different versions. glGetString
73 always returns a compatible version number. The release number always
74 describes the server.
75
77 GL_INVALID_ENUM is generated if name is not an accepted value.
78
79 GL_INVALID_VALUE is generated by glGetStringi if index is outside the
80 valid range for indexed state name.
81
83 Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010 Khronos
84 Group. This document is licensed under the SGI Free Software B License.
85 For details, see http://oss.sgi.com/projects/FreeB/.
86
88 opengl.org
89
90
91
92opengl.org 06/10/2014 GLGETSTRING(3G)