diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Camera/IntermediateUsers.cpp |
Diffstat (limited to 'Runtime/Camera/IntermediateUsers.cpp')
-rw-r--r-- | Runtime/Camera/IntermediateUsers.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Runtime/Camera/IntermediateUsers.cpp b/Runtime/Camera/IntermediateUsers.cpp new file mode 100644 index 0000000..2422376 --- /dev/null +++ b/Runtime/Camera/IntermediateUsers.cpp @@ -0,0 +1,21 @@ +#include "UnityPrefix.h" +#include "IntermediateUsers.h" +#include "IntermediateRenderer.h" + +void IntermediateUsers::Notify(IntermediateNotify notify) +{ + IntermediateRendererList::iterator i; + switch (notify) + { + case kImNotifyAssetDeleted: + for (i = m_IntermediateUsers.begin(); i != m_IntermediateUsers.end(); ++i) + (*i)->OnAssetDeleted(); + break; + case kImNotifyBoundsChanged: + for (i = m_IntermediateUsers.begin(); i != m_IntermediateUsers.end(); ++i) + (*i)->OnAssetBoundsChanged(); + break; + default: + AssertString("unknown notification"); + } +} |