This file is indexed.

/usr/include/globjects/DebugMessage.h is in libglobjects-dev 1.1.0-2.

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
#pragma once

#include <string>
#include <vector>

#include <glbinding/gl/types.h>

#include <globjects/globjects_api.h>


namespace globjects
{


class GLOBJECTS_API DebugMessage
{
public:
    enum class Implementation
    {
        DebugKHR
    ,   Legacy
    };

    static void hintImplementation(Implementation impl);

public:
    using Callback = std::function<void(const DebugMessage &)>;

    DebugMessage(gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, const std::string & message);

    gl::GLenum source() const;
    gl::GLenum type() const;
    gl::GLuint id() const;
    gl::GLenum severity() const;
    const std::string & message() const;

    virtual std::string toString() const;

protected:
    gl::GLenum m_source;
    gl::GLenum m_type;
    gl::GLuint m_id;
    gl::GLenum m_severity;
    std::string m_message;

    std::string severityString() const;
    std::string sourceString() const;
    std::string typeString() const;

public:
    static void enable(bool synchronous = true);
    static void disable();

    static void setCallback(Callback callback);

    static void setSynchronous(bool synchronous);

    static void insertMessage(gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, gl::GLsizei length, const char * message);
    static void insertMessage(gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, const std::string & message);
    static void insertMessage(const DebugMessage & message);

    static void enableMessage(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint id);
    static void enableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint * ids);
    static void enableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, const std::vector<gl::GLuint> & ids);

    static void disableMessage(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint id);
    static void disableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint * ids);
    static void disableMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, const std::vector<gl::GLuint> & ids);

    static void controlMessages(gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint * ids, gl::GLboolean enabled);

    static bool isFallbackImplementation();
};


} // namespace globjects