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