globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Changeable.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <set>
5
6#include <globjects/globjects_api.h>
7
8
9namespace globjects
10{
11
12
13class ChangeListener;
14
22class GLOBJECTS_API Changeable
23{
24public:
25 void changed() const;
26
29
30private:
31 std::set<ChangeListener *> m_listeners;
32};
33
34
35} // namespace globjects
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
void changed() const
void deregisterListener(ChangeListener *listener)
void registerListener(ChangeListener *listener)
Contains all the classes that wrap OpenGL functionality.