| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

StringSourceDecorator.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <globjects/base/ChangeListener.h>
5 #include <globjects/base/ref_ptr.h>
6 #include <globjects/base/AbstractStringSource.h>
7
8 #include <globjects/globjects_api.h>
9
10
11 namespace globjects
12 {
13
14
15 class GLOBJECTS_API StringSourceDecorator : public globjects::AbstractStringSource, protected globjects::ChangeListener
16 {
17 public:
18 StringSourceDecorator(globjects::AbstractStringSource * source);
19
20 virtual void update();
21 protected:
22 virtual ~StringSourceDecorator();
23
24 virtual void notifyChanged(const Changeable * changeable) override;
25
26 protected:
27 globjects::ref_ptr<globjects::AbstractStringSource> m_internal;
28 };
29
30
31 } // namespace globjects
globjects::StringSourceDecorator
Definition: StringSourceDecorator.h:15
ChangeListener.h
globjects::ref_ptr< globjects::AbstractStringSource >
globjects
Contains all the classes that wrap OpenGL functionality.
ref_ptr.h
globjects::Changeable
Superclass of all objects that want others to signal that they have changed.
Definition: Changeable.h:22
globjects::StringSourceDecorator::m_internal
globjects::ref_ptr< globjects::AbstractStringSource > m_internal
Definition: StringSourceDecorator.h:27
AbstractStringSource.h
globjects::ChangeListener
Allows listening to any Changeable.
Definition: ChangeListener.h:22
globjects::AbstractStringSource
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code...
Definition: AbstractStringSource.h:25