25 #ifndef __I6ENGINE_MODULES_COMPOSITORS_LISTENERFACTORYLOGIC_H__
26 #define __I6ENGINE_MODULES_COMPOSITORS_LISTENERFACTORYLOGIC_H__
28 #include "OGRE/OgreCompositorLogic.h"
29 #include "OGRE/OgreCompositorInstance.h"
37 Ogre::CompositorInstance::Listener * listener =
createListener(newInstance);
38 newInstance->addListener(listener);
39 mListeners[newInstance] = listener;
43 delete mListeners[destroyedInstance];
44 mListeners.erase(destroyedInstance);
49 virtual Ogre::CompositorInstance::Listener *
createListener(Ogre::CompositorInstance * instance) = 0;
52 typedef std::map<Ogre::CompositorInstance *, Ogre::CompositorInstance::Listener *> ListenerMap;
53 ListenerMap mListeners;
virtual void compositorInstanceDestroyed(Ogre::CompositorInstance *destroyedInstance)
virtual Ogre::CompositorInstance::Listener * createListener(Ogre::CompositorInstance *instance)=0
virtual void compositorInstanceCreated(Ogre::CompositorInstance *newInstance)