| 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
9 namespace globjects
10 {
11
12
13 class ChangeListener;
14
22 class GLOBJECTS_API Changeable
23 {
24 public:
25 void changed() const;
26
27 void registerListener(ChangeListener * listener);
28 void deregisterListener(ChangeListener * listener);
29
30 private:
31 std::set<ChangeListener *> m_listeners;
32 };
33
34
35 } // namespace globjects
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Changeable
Superclass of all objects that want others to signal that they have changed.
Definition: Changeable.h:22
globjects::ChangeListener
Allows listening to any Changeable.
Definition: ChangeListener.h:22