Beispiel #1
0
        public void reload(GAFRenderProcessor _Processor)
        {
            if (hasController())
            {
                m_Controller.registerObject(this);
            }

            if (m_Impl != null)
            {
                m_Impl.cleanUp();
            }

            m_Impl = GAFBakedObjectImplsFactory.getImpl(m_Data, _Processor, m_Controller);
        }
Beispiel #2
0
        public static GAFBakedObjectImpl getImpl(GAFObjectData _Data, GAFRenderProcessor _Processor, GAFBakedObjectController _Controller)
        {
            GAFBakedObjectImpl impl = null;

            switch (_Data.type)
            {
            case ObjectType.Simple:         impl = new GAFBakedObjectImpl(_Data, _Processor, _Controller); break;

            case ObjectType.Masked:         impl = new GAFBakedMaskedObjectImpl(_Data, _Processor, _Controller); break;

            case ObjectType.Mask:           impl = new GAFBakedMaskObjectImpl(_Data, _Processor, _Controller); break;

            case ObjectType.Filtered:       impl = new GAFBakedObjectImpl(_Data, _Processor, _Controller); break;

            case ObjectType.Complex:        impl = new GAFBakedMaskedObjectImpl(_Data, _Processor, _Controller); break;
            }

            return(impl);
        }
        public void reload(GAFRenderProcessor _Processor)
        {
            if (hasController())
                m_Controller.registerObject(this);

            if (m_Impl != null)
                m_Impl.cleanUp();

            m_Impl = GAFBakedObjectImplsFactory.getImpl(m_Data, _Processor, m_Controller);
        }