/usr/include/globjects/NamedString.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 | #pragma once
#include <string>
#include <glbinding/gl/types.h>
#include <globjects/base/ChangeListener.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/base/Referenced.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class AbstractStringSource;
class GLOBJECTS_API NamedString : public Referenced, protected ChangeListener
{
public:
static NamedString * create(const std::string & name, AbstractStringSource * string);
static NamedString * create(const std::string & name, const std::string & string);
static bool isNamedString(const std::string & name);
static NamedString * obtain(const std::string & name);
public:
const std::string & name() const;
std::string string() const;
gl::GLenum type() const;
AbstractStringSource * stringSource() const;
gl::GLint getParameter(gl::GLenum pname) const;
virtual void notifyChanged(const Changeable * changeable) override;
protected:
static bool hasNativeSupport();
static NamedString * create(const std::string & name, AbstractStringSource * string, gl::GLenum type);
static NamedString * create(const std::string & name, const std::string & string, gl::GLenum type);
protected:
void updateString();
void createNamedString();
void deleteNamedString();
NamedString(const std::string & name, AbstractStringSource * source, gl::GLenum type);
virtual ~NamedString();
void registerNamedString();
void deregisterNamedString();
protected:
std::string m_name;
ref_ptr<AbstractStringSource> m_source;
gl::GLenum m_type;
};
} // namespace globjects
|