globjects  1.0.0.ae1b474792ef
Strict OpenGL objects wrapper.

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

Inheritance diagram for globjects::NamedString:
globjects::Referenced globjects::ChangeListener globjects::HeapOnly

Public Member Functions

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
 
- Public Member Functions inherited from globjects::Referenced
 Referenced ()
 
void ref () const
 
void unref () const
 
int refCounter () const
 
- Public Member Functions inherited from globjects::HeapOnly
 HeapOnly ()
 
void destroy () const
 

Static Public Member Functions

static NamedStringcreate (const std::string &name, AbstractStringSource *string)
 
static NamedStringcreate (const std::string &name, const std::string &string)
 
static bool isNamedString (const std::string &name)
 
static NamedStringobtain (const std::string &name)
 

Protected Member Functions

void updateString ()
 
void createNamedString ()
 
void deleteNamedString ()
 
 NamedString (const std::string &name, AbstractStringSource *source, gl::GLenum type)
 
virtual ~NamedString ()
 
void registerNamedString ()
 
void deregisterNamedString ()
 
- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 
- Protected Member Functions inherited from globjects::ChangeListener
virtual ~ChangeListener ()
 

Static Protected Member Functions

static bool hasNativeSupport ()
 
static NamedStringcreate (const std::string &name, AbstractStringSource *string, gl::GLenum type)
 
static NamedStringcreate (const std::string &name, const std::string &string, gl::GLenum type)
 

Protected Attributes

std::string m_name
 
ref_ptr< AbstractStringSourcem_source
 
gl::GLenum m_type
 

Constructor & Destructor Documentation

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

Member Function Documentation

static NamedString* globjects::NamedString::create ( const std::string &  name,
AbstractStringSource string 
)
static
static NamedString* globjects::NamedString::create ( const std::string &  name,
const std::string &  string 
)
static
static bool globjects::NamedString::isNamedString ( const std::string &  name)
static
static NamedString* globjects::NamedString::obtain ( 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
static NamedString* globjects::NamedString::create ( const std::string &  name,
AbstractStringSource string,
gl::GLenum  type 
)
staticprotected
static NamedString* globjects::NamedString::create ( const std::string &  name,
const std::string &  string,
gl::GLenum  type 
)
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
ref_ptr<AbstractStringSource> globjects::NamedString::m_source
protected
gl::GLenum globjects::NamedString::m_type
protected

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