globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.

#include <globjects/include/globjects/NamedString.h>

Inheritance diagram for globjects::NamedString:
globjects::ChangeListener globjects::Instantiator< NamedString >

Public Member Functions

 NamedString (const std::string &name, AbstractStringSource *source)
 
 NamedString (const std::string &name, AbstractStringSource *source, gl::GLenum type)
 
virtual ~NamedString ()
 
const std::string & name () const
 
std::string string () const
 
gl::GLenum type () const
 
AbstractStringSourcestringSource () const
 
gl::GLint getParameter (gl::GLenum pname) const
 
virtual void notifyChanged (const Changeable *changeable) override
 

Static Public Member Functions

static bool isNamedString (const std::string &name)
 
static NamedStringgetFromRegistry (const std::string &name)
 
- Static Public Member Functions inherited from globjects::Instantiator< NamedString >
static std::unique_ptr< NamedStringcreate (Args &&...args)
 
static std::unique_ptr< NamedStringfromId (gl::GLuint id, Args &&...args)
 

Protected Member Functions

void updateString ()
 
void createNamedString ()
 
void deleteNamedString ()
 
void registerNamedString ()
 
void deregisterNamedString ()
 
- Protected Member Functions inherited from globjects::ChangeListener
void addSubject (Changeable *subject)
 
virtual void removeSubject (Changeable *subject)
 
virtual ~ChangeListener ()
 

Static Protected Member Functions

static bool hasNativeSupport ()
 
- Static Protected Member Functions inherited from globjects::Instantiator< NamedString >
static std::unique_ptr< NamedStringcreate (Args &&...args)
 
static std::unique_ptr< NamedStringfromId (gl::GLuint id, Args &&...args)
 

Protected Attributes

std::string m_name
 
AbstractStringSourcem_source
 
gl::GLenum m_type
 
- Protected Attributes inherited from globjects::ChangeListener
std::set< Changeable * > m_subjects
 

Constructor & Destructor Documentation

globjects::NamedString::NamedString ( const std::string &  name,
AbstractStringSource source 
)
globjects::NamedString::NamedString ( const std::string &  name,
AbstractStringSource source,
gl::GLenum  type 
)
virtual globjects::NamedString::~NamedString ( )
virtual

Member Function Documentation

static bool globjects::NamedString::isNamedString ( const std::string &  name)
static
static NamedString* globjects::NamedString::getFromRegistry ( const std::string &  name)
static
const std::string& globjects::NamedString::name ( ) const
std::string globjects::NamedString::string ( ) const
gl::GLenum globjects::NamedString::type ( ) const
AbstractStringSource* globjects::NamedString::stringSource ( ) const
gl::GLint globjects::NamedString::getParameter ( gl::GLenum  pname) const
virtual void globjects::NamedString::notifyChanged ( const Changeable changeable)
overridevirtual

Reimplemented from globjects::ChangeListener.

static bool globjects::NamedString::hasNativeSupport ( )
staticprotected
void globjects::NamedString::updateString ( )
protected
void globjects::NamedString::createNamedString ( )
protected
void globjects::NamedString::deleteNamedString ( )
protected
void globjects::NamedString::registerNamedString ( )
protected
void globjects::NamedString::deregisterNamedString ( )
protected

Member Data Documentation

std::string globjects::NamedString::m_name
protected
AbstractStringSource* globjects::NamedString::m_source
protected
gl::GLenum globjects::NamedString::m_type
protected

The documentation for this class was generated from the following file: