summaryrefslogtreecommitdiff
path: root/Runtime/Camera/IntermediateUsers.cpp
blob: 24223767ec41126bd98c99cd2dfba6d67d428fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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");
	}
}