예제 #1
0
파일: Program.cs 프로젝트: stegru/pov.net
        public static string RenderElement(SceneElement element)
        {
            SceneWriter     output       = new SceneWriter();
            OutputAttribute outputAttr   = OutputAttribute.Combine(element.GetAllAttributes <OutputAttribute>());
            ElementContext  sceneContext = new ElementContext(new ElementContext(null, new Scene()), element, outputAttr);

            sceneContext.LoadChildren(true);
            sceneContext.Write(output);
            return(output.ToString());
        }