6#include <glbinding/gl/types.h>
12#include <globjects/globjects_api.h>
19class AbstractStringSource;
31 const std::string &
name()
const;
45 static NamedString *
create(
const std::string & name,
const std::string &
string, gl::GLenum type);
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
Definition: AbstractStringSource.h:26
Allows listening to any Changeable.
Definition: ChangeListener.h:23
Superclass of all objects that want others to signal that they have changed.
Definition: Changeable.h:23
Definition: NamedString.h:22
const std::string & name() const
static NamedString * create(const std::string &name, AbstractStringSource *string, gl::GLenum type)
std::string string() const
static NamedString * create(const std::string &name, const std::string &string)
gl::GLenum m_type
Definition: NamedString.h:64
static NamedString * obtain(const std::string &name)
gl::GLint getParameter(gl::GLenum pname) const
void deregisterNamedString()
void registerNamedString()
static bool hasNativeSupport()
static NamedString * create(const std::string &name, AbstractStringSource *string)
NamedString(const std::string &name, AbstractStringSource *source, gl::GLenum type)
ref_ptr< AbstractStringSource > m_source
Definition: NamedString.h:63
std::string m_name
Definition: NamedString.h:61
virtual void notifyChanged(const Changeable *changeable) override
static bool isNamedString(const std::string &name)
AbstractStringSource * stringSource() const
static NamedString * create(const std::string &name, const std::string &string, gl::GLenum type)
Superclass for all classes that use reference counting in globjects.
Definition: Referenced.h:23
The ref_ptr class provides the interface for a reference pointer.
Definition: ref_ptr.h:33
Contains all the classes that wrap OpenGL functionality.