#include "StdAfx.h" #include "EventCustomRender.h" #include "ECRVolumeFog.h" std::vector CEventCustomRender::s_pVecList; void CEventCustomRender::RegisterClass() { s_pVecList.push_back( new CECRVolumeFog( "VolumeFog" ) ); } void CEventCustomRender::UnregisterClass() { SAFE_DELETE_PVEC( s_pVecList ); } CEventCustomRender *CEventCustomRender::AllocCustomRender( const char *szControlName ) { for( DWORD i=0; iGetEventControlName(), szControlName ) == NULL ) return s_pVecList[i]->Clone(); } return NULL; }