示例#1
0
        public CustomEffectFactory(CustomEffectFactoryDelegate factory, Type customEffectType)
        {
            this.customEffectType = customEffectType;

            // Gets the guid of this class
            Guid = Utilities.GetGuidFromType(customEffectType);

            unsafe
            {
                Factory = factory;
                callback = new CreateCustomEffectDelegate(CreateCustomEffectImpl);
                NativePointer = Marshal.GetFunctionPointerForDelegate(callback);
            }

            InitializeBindings();
            InitializeXml();
        }
        public CustomEffectFactory(CustomEffectFactoryDelegate factory, Type customEffectType, Guid effectId)
        {
            this.customEffectType = customEffectType;

            // Gets the guid of this class
            Guid = effectId;

            unsafe
            {
                Factory       = factory;
                callback      = new CreateCustomEffectDelegate(CreateCustomEffectImpl);
                NativePointer = Marshal.GetFunctionPointerForDelegate(callback);
            }

            InitializeBindings();
            InitializeXml();
        }
 public CustomEffectFactory(CustomEffectFactoryDelegate factory, Type customEffectType)
     : this(factory, customEffectType, Utilities.GetGuidFromType(customEffectType))
 {
 }
示例#4
0
 public CustomEffectFactory(CustomEffectFactoryDelegate factory, Type customEffectType)
     : this (factory, customEffectType, Utilities.GetGuidFromType(customEffectType))
 {
 }