示例#1
0
        public RenderTargetManager(IPluginHost host, IIOFactory iofactory)
        {
            this.host = host;
            this.iofactory = iofactory;

            ConfigAttribute cattr = new ConfigAttribute("Texture Input Mode");
            cattr.IsSingle = true;
            cattr.DefaultEnumEntry = "Manual";

            pinmode = this.iofactory.CreateIOContainer<IDiffSpread<eRenderFormatMode>>(cattr);
            pinmode.IOObject.Changed += Pinmode_Changed;

            this.currentmode = eRenderFormatMode.Manual;

            this.CreateFormat();
            this.CreateSize();
        }
示例#2
0
        public RenderTargetManager(IPluginHost host, IIOFactory iofactory)
        {
            this.host      = host;
            this.iofactory = iofactory;

            ConfigAttribute cattr = new ConfigAttribute("Texture Input Mode");

            cattr.IsSingle         = true;
            cattr.DefaultEnumEntry = "Manual";

            pinmode = this.iofactory.CreateIOContainer <IDiffSpread <eRenderFormatMode> >(cattr);
            pinmode.IOObject.Changed += Pinmode_Changed;

            this.currentmode = eRenderFormatMode.Manual;

            this.CreateFormat();
            this.CreateSize();
        }
示例#3
0
        private void Pinmode_Changed(IDiffSpread <eRenderFormatMode> spread)
        {
            if (this.currentmode == eRenderFormatMode.Manual)
            {
                this.DisposeTexIn();
            }

            this.currentmode = spread[0];

            if (this.currentmode == eRenderFormatMode.Inherit)
            {
                this.CreateTextureIn();
            }

            if (this.currentmode == eRenderFormatMode.InheritSize)
            {
                this.CreateTextureIn();
            }
        }
示例#4
0
        private void Pinmode_Changed(IDiffSpread<eRenderFormatMode> spread)
        {
            if (this.currentmode == eRenderFormatMode.Manual)
            {
                this.DisposeTexIn();
            }

            this.currentmode = spread[0];

            if (this.currentmode == eRenderFormatMode.Inherit)
            {
                this.CreateTextureIn();
            }

            if (this.currentmode == eRenderFormatMode.InheritSize)
            {
                this.CreateTextureIn();
            }
        }