Example #1
0
        public static Pipeline Create(string path, MediaLoader ml, int width, int height)
        {
            Linker linker = new Linker();
            string t      = linker.read(path, ml, width, height);

            linker.link();
            Pipeline pp   = linker.getPipeline(linker.getTarget(t));
            Binder   bind = new Binder(ml.FS);

            pp.bind(bind);
            bind.createBuffers();
            return(pp);
        }
Example #2
0
        public void link(Linker linker)
        {
            if (false == string.IsNullOrEmpty(targetname))
            {
                target          = linker.getTarget(targetname);
                target.Provider = this;
            }

            foreach (Command c in commands)
            {
                c.link(linker);
            }

            doLink(linker);
        }