Loading...
Searching...
No Matches
StringSourceDecorator.h
Go to the documentation of this file.
#pragma once
#include <globjects/base/ChangeListener.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/base/AbstractStringSource.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class GLOBJECTS_API StringSourceDecorator : public globjects::AbstractStringSource, protected globjects::ChangeListener
{
public:
StringSourceDecorator(globjects::AbstractStringSource * source);
virtual void update();
protected:
virtual ~StringSourceDecorator();
virtual void notifyChanged(const Changeable * changeable) override;
protected:
globjects::ref_ptr<globjects::AbstractStringSource> m_internal;
};
} // namespace globjects
AbstractStringSource.h
ChangeListener.h
globjects::AbstractStringSource
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
Definition AbstractStringSource.h:26
globjects::ChangeListener
Allows listening to any Changeable.
Definition ChangeListener.h:23
globjects::Changeable
Superclass of all objects that want others to signal that they have changed.
Definition Changeable.h:23
globjects::StringSourceDecorator
Definition StringSourceDecorator.h:16
globjects::StringSourceDecorator::StringSourceDecorator
StringSourceDecorator(globjects::AbstractStringSource *source)
globjects::StringSourceDecorator::update
virtual void update()
globjects::StringSourceDecorator::~StringSourceDecorator
virtual ~StringSourceDecorator()
globjects::StringSourceDecorator::m_internal
globjects::ref_ptr< globjects::AbstractStringSource > m_internal
Definition StringSourceDecorator.h:27
globjects::StringSourceDecorator::notifyChanged
virtual void notifyChanged(const Changeable *changeable) override
globjects::ref_ptr
The ref_ptr class provides the interface for a reference pointer.
Definition ref_ptr.h:33
globjects
Contains all the classes that wrap OpenGL functionality.
ref_ptr.h