Exemple #1
0
void SimpleStageBase::onCreate(const SimpleStage *source)
{
    Inherited::onCreate(source);

    if(source != NULL)
    {
        SimpleStage *pThis = static_cast<SimpleStage *>(this);

        pThis->setCamera(source->getCamera());

        pThis->setBackground(source->getBackground());

        MFUnrecForegroundPtr::const_iterator ForegroundsIt  =
            source->_mfForegrounds.begin();
        MFUnrecForegroundPtr::const_iterator ForegroundsEnd =
            source->_mfForegrounds.end  ();

        while(ForegroundsIt != ForegroundsEnd)
        {
            pThis->pushToForegrounds(*ForegroundsIt);

            ++ForegroundsIt;
        }
    }
}
void SimpleStageBase::onCreate(const SimpleStage *source)
{
    Inherited::onCreate(source);

    if(source != NULL)
    {
        SimpleStage *pThis = static_cast<SimpleStage *>(this);

        pThis->setCamera(source->getCamera());

        pThis->setBackground(source->getBackground());
    }
}