예제 #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);
        }
예제 #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);
        }
예제 #3
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);
        }