Loading...
Searching...
No Matches
Changeable.h
Go to the documentation of this file.
#pragma once
#include <set>
#include <globjects/globjects_api.h>
namespace globjects
{
class ChangeListener;
class GLOBJECTS_API Changeable
{
public:
void changed() const;
void registerListener(ChangeListener * listener);
void deregisterListener(ChangeListener * listener);
private:
std::set<ChangeListener *> m_listeners;
};
} // namespace globjects
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::Changeable::changed
void changed() const
globjects::Changeable::deregisterListener
void deregisterListener(ChangeListener *listener)
globjects::Changeable::registerListener
void registerListener(ChangeListener *listener)
globjects
Contains all the classes that wrap OpenGL functionality.