/usr/include/globjects/ProgramPipeline.h is in libglobjects-dev 1.0.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 | #pragma once
#include <set>
#include <glbinding/gl/types.h>
#include <globjects/globjects_api.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/base/ChangeListener.h>
#include <globjects/Object.h>
namespace globjects
{
class Program;
class GLOBJECTS_API ProgramPipeline : public Object, protected ChangeListener
{
public:
ProgramPipeline();
virtual ~ProgramPipeline();
virtual void accept(ObjectVisitor & visitor) override;
void use() const;
static void release();
void useStages(Program * program, gl::UseProgramStageMask stages);
void releaseStages(gl::UseProgramStageMask stages);
void releaseProgram(Program * program);
bool isValid() const;
void validate() const;
bool checkUseStatus() const;
std::string infoLog() const;
gl::GLint get(gl::GLenum pname) const;
virtual void notifyChanged(const Changeable * sender) override;
virtual gl::GLenum objectType() const override;
protected:
void invalidate();
protected:
bool m_dirty;
std::set<ref_ptr<Program>> m_programs;
};
} // namespace globjects
|