This file is indexed.

/usr/include/glbinding/Meta.h is in libglbinding-dev 2.1.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
#pragma once

#include <string>
#include <utility>
#include <vector>
#include <set>
#include <cstdint>

#include <glbinding/glbinding_api.h>

#include <glbinding/gl/types.h>


namespace glbinding
{

class AbstractFunction;
class Version;

/**
 * @brief
 *  Provisioning of meta information about OpenGL extensions, functions and conversion of strings and symbols of the OpenGL API.
 */
class GLBINDING_API Meta
{
public:
    /**
     * @brief
     *   Deleted Constructor as all functions are static.
     */
    Meta() = delete;

    /**
     * @brief
     *   Returns the revision of the parsed gl.xml file.
     *
     * @return
     *   The revision of the parsed gl.xml file.
     */
    static int glRevision();

    /**
     * @brief
     *   Converts a string into a bitfield symbol.
     *
     * @param[in] glbitfield
     *    The string representation of the bitfield.
     *
     * @return
     *   The symbol identified through the bitfield string, 0 if failed.
     */
    static gl::GLbitfield getBitfield(const std::string & glbitfield);
    
    /**
     * @brief
     *   Returns the list of all bitfields known by the gl.xml.
     *
     * @return
     *   The list of all bitfields known by the gl.xml.
     */
    static std::vector<gl::GLbitfield> bitfields();

    /**
     * @brief
     *   Converts a GLenum to a string.
     *
     * @param[in] glenum
     *   The enum to convert.
     *
     * @return
     *   A string representation of the GLenum symbol name.
     *
     * Beware, that some enums in the OpenGL API have different symbol names but identical enum values and that this function cannot differentiate between them.
     */
    static const std::string & getString(gl::GLenum glenum);
    
    /**
     * @brief
     *   Converts a string to a GLenum symbol.
     *
     * @param[in] glenum
     *   The string representation of the enum.
     *
     * @return
     *   The symbol identified through the enum string, 0 if failed.
     */
    static gl::GLenum getEnum(const std::string & glenum);
    
    /**
     * @brief
     *   Returns the list of all enums known by the gl.xml.
     *
     * @return
     *   The list of all enums known by the gl.xml.
     */
    static std::vector<gl::GLenum> enums();

    /**
     * @brief
     *   Converts a GLboolean to a string.
     *
     * @param[in] glboolean
     *   The boolean to convert.
     *
     * @return
     *   A string representation of the GLboolean symbol name.
     *
     * Can either be 'GL_TRUE' or 'GL_FALSE'.
     */
    static const std::string & getString(const gl::GLboolean & glboolean);
    
    /**
     * @brief
     *   Converts a string to a GLboolean symbol.
     *
     * @param[in] glboolean
     *   The string representation of the GLboolean.
     *
     * @return
     *   The symbol identified through the boolean string, 'GL_FALSE' if failed.
     */
    static gl::GLboolean getBoolean(const std::string & glboolean);

    /**
     * @brief
     *   Converts a GLextension to its string representation.
     *
     * @param[in] glextension
     *   The extension to convert.
     *
     * @return
     *   The string representation of the extension.
     */
    static const std::string & getString(gl::GLextension glextension);
    
    /**
     * @brief
     *   Converts a string to an extension.
     *
     * @param[in] glextension
     *   The string representation of the extension.
     *
     * @return
     *   The symbol identified through the extension string, 'UNKNOWN' if failed.
     */
    static gl::GLextension getExtension(const std::string & glextension);

    /**
     * @brief
     *   Returns the set of all extensions known by the gl.xml.
     *
     * @return
     *   The set of all extensions known by the gl.xml.
     */
    static std::set<gl::GLextension> extensions();
    
    /**
    * @brief
    *   Returns the set of extensions that are required for by the given version.
    *
    * @param[in] version
    *   The version/feature to return the required extensions for.
    *   If an null version is given, all extensions that have no
    *   version/feature associated are returned instead.
    *
    * @return
    *   The set of extensions that should be supported for the given version.
    *   All non versioned extensions can be queried by providing the null version.
    */
    static const std::set<gl::GLextension> extensions(const Version & version);

    /**
     * @brief
     *   Returns the list of extensions that are requiring an OpenGL function.
     *
     * @param[in] glfunction
     *   The name of the function, including the 'gl' prefix.
     *
     * @return
     *   The set of extensions that are requiring an OpenGL function.
     */
    static const std::set<gl::GLextension> extensions(const std::string & glfunction);
    
    /**
    * @brief
    *   Returns the set of functions that are required for the version.
    *
    * @param[in] version
    *   The version to return the required functions for.
    *
    * @return
    *   The set of functions that are required for the version.
    *   Note: this is exclusive (preceeding versions are ignored).
    */
    static const std::set<AbstractFunction *> functions(const Version & version);

    /**
    * @brief
    *   Returns the set of functions that are required for the extension.
    *
    * @param[in] glextension
    *   The extension to return the required functions for.
    *
    * @return
    *   The set of functions that are required for the extension.
    */
    static const std::set<AbstractFunction *> functions(gl::GLextension glextension);

    /**
     * @brief
     *   Returns the first OpenGL Version (Feature) that required the extension.
     *
     * @param[in] glextension
     *   The extension.
     *
     * @return
     *   The first OpenGL Version (Feature) that required the extension.
     */
    static const Version & version(gl::GLextension glextension);

    /**
     * @brief
     *   Returns the first OpenGL Version (Feature) that required the extension.
     *
     * @param[in] glextension
     *   The extension.
     *
     * @return
     *   The first OpenGL Version (Feature) that required the extension.
     *
     * @deprecated
     *   This method will be removed in future major releases.
     */
    static const Version & getRequiringVersion(gl::GLextension glextension);
    
    /**
     * @brief
     *   Returns the list of all Versions (Features) known by the gl.xml.
     *
     * @return
     *   The list of all Versions (Features) known by the gl.xml.
     */
    static const std::set<Version> & versions();

    static const std::string & getString(gl::AttribMask glbitfield);
    static const std::string & getString(gl::BufferAccessMask glbitfield);
    static const std::string & getString(gl::BufferStorageMask glbitfield);
    static const std::string & getString(gl::ClearBufferMask glbitfield);
    static const std::string & getString(gl::ClientAttribMask glbitfield);
    static const std::string & getString(gl::ContextFlagMask glbitfield);
    static const std::string & getString(gl::ContextProfileMask glbitfield);
    static const std::string & getString(gl::FfdMaskSGIX glbitfield);
    static const std::string & getString(gl::FragmentShaderColorModMaskATI glbitfield);
    static const std::string & getString(gl::FragmentShaderDestMaskATI glbitfield);
    static const std::string & getString(gl::FragmentShaderDestModMaskATI glbitfield);
    static const std::string & getString(gl::MapBufferUsageMask glbitfield);
    static const std::string & getString(gl::MemoryBarrierMask glbitfield);
    static const std::string & getString(gl::PathFontStyle glbitfield);
    static const std::string & getString(gl::PathRenderingMaskNV glbitfield);
    static const std::string & getString(gl::PerformanceQueryCapsMaskINTEL glbitfield);
    static const std::string & getString(gl::SyncObjectMask glbitfield);
    static const std::string & getString(gl::TextureStorageMaskAMD glbitfield);
    static const std::string & getString(gl::UnusedMask glbitfield);
    static const std::string & getString(gl::UseProgramStageMask glbitfield);
    static const std::string & getString(gl::VertexHintsMaskPGI glbitfield);

private:
    /**
     * @brief
     *   Returns the bucket index of an OpenGL identifier used for the actual lookup into the compile-time maps.
     *
     * @param[in] identifier
     *   The identifier for the bucket lookup.
     *
     * @param[in] prefixLength
     *   The length of the prefix (e.g., 'gl' or 'GL_') to omit to get the actual first character of the identifier.
     *
     * @return
     *   The bucket index of an OpenGL identifier.
     */
    static size_t alphabeticalGroupIndex(const std::string & identifier, std::uint8_t prefixLength);
};


} // namespace gl