This file is indexed.

/usr/include/glbinding/ContextInfo.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
#pragma once

#include <set>
#include <string>

#include <glbinding/glbinding_api.h>


namespace gl
{
    enum class GLextension : int;
}


namespace glbinding
{

class AbstractFunction;
class Version;

/**
 * @brief
 *   The ContextInfo class allows for access to metainformation about a context.
 *   The information is only valid for the currently active context.
 */
class GLBINDING_API ContextInfo
{
public:
    /**
     * @brief
     *   Deleted Constructor; this class is intended to be used without instantiation.
     */
    ContextInfo() = delete;

    /**
    * @brief
    *   Gathers information about the available extensions in the current context.
    *
    * @return
    *   The list of available extensions known by glbinding.
    */
    static std::set<gl::GLextension> extensions();

    /**
     * @brief
     *   Gathers information about the available extensions in the current context.
     *
     * @param[out] unknown (optional)
     *   The list of extension names for available extensions not known by glbinding.
     *
     * @return
     *   The list of available extensions known by glbinding.
     *
     * @deprecated
     *   This method will be removed in future major releases.
     */
    static std::set<gl::GLextension> extensions(std::set<std::string> * unknown);

    /**
     * @brief
     *   Gathers information about the available extensions in the current context.
     *
     * @param[out] unknown
     *   The list of extension names for available extensions not known by glbinding.
     *
     * @return
     *   The list of available extensions known by glbinding.
     */
    static std::set<gl::GLextension> extensions(std::set<std::string> & unknown);

    /**
     * @brief
     *   Queries the renderer string.
     *
     * @return
     *   The renderer string.
     */
    static std::string renderer();

    /**
     * @brief
     *   Queries the vendor string.
     *
     * @return
     *   The vendor string.
     */
    static std::string vendor();

    /**
     * @brief
     *   Queries the OpenGL feature number.
     *
     * @return
     *   The version encoding the OpenGL feature.
     */
    static Version version();

    /**
    * @brief
    *   Queries if all given extensions are supported.
    *
    * @param[in] extensions
    *   A set of extensions that are tested for availability in the current context.
    *
    * @return
    *   True if all given extensions are supported by the current context.
    */
    static bool supported(const std::set<gl::GLextension> & extensions);

    /**
    * @brief
    *   Queries if all given extensions are supported.
    *
    * @param[in] extensions
    *   A set of extensions that are tested for availability in the current context.
    *
    * @param[out] unknown
    *   The subset of extensions (based on the given extensions) not supported by the current context.
    *
    * @return
    *   True if all given extensions are supported by the current context.
    */
    static bool supported(
        const std::set<gl::GLextension> & extensions
    ,   std::set<gl::GLextension> & unsupported);

    /**
    * @brief
    *   Queries all missing extensions and unresolved functions for the given OpenGL feature.
    *
    * @param[in] version
    *   The version for which all functions and extensions are checked.
    * @param[in] resolve
    *   Specifies whether or not functions shall be explicitly resolved before querrying their status.
    *
    * @return
    *   True if all extensions required for the given feature are supported.
    */
    static bool supported(const Version & version, bool resolve = false);

    /**
    * @brief
    *   Queries all missing extensions for the given OpenGL feature.
    *
    * @param[in] version
    *   The version for which all functions and extensions are checked.
    * @param[out] unsupportedExtensions
    *   The set of extensions missing by the current context for full feature support.
    * @param[out] unsupportedFunctions
    *   The set of functions that could not be resolved in the current context.
    * @param[in] resolve
    *   Specifies whether or not functions shall be explicitly resolved before querrying their status.
    *
    * @return
    *   True if all extensions required for the given feature are supported.
    */
    static bool supported(const Version & version
        , std::set<gl::GLextension> & unsupportedExtensions
        , std::set<AbstractFunction *> & unsupportedFunctions
        , bool resolve = false);

};


} // namespace glbinding