コード例 #1
0
ファイル: DemoLauncher.cs プロジェクト: zonneryx/SharpThreejs
        private static void clickDemo(jQueryEvent arg)
        {
            BaseDemo d = arg.Data as BaseDemo;

            if (d == ActiveDemo)
            {
                return;
            }

            if (ActiveDemo != null)
            {
                ActiveDemo.Hide();
                DemoContainer.RemoveChild(ActiveDemo.Container);
                ActiveDemo = null;
            }

            ActiveDemo = d;
            DemoContainer.AppendChild(ActiveDemo.Container);

            Action doShow = delegate
            {
                ActiveDemo.Show();
            };

            Window.SetTimeout(doShow, 500);
        }
コード例 #2
0
        private static void AddDemo(BaseDemo v)
        {
            if (!Demos.ContainsKey(v.DemoCategory))
                Demos.Add(v.DemoCategory, new List<BaseDemo>());

            Demos[v.DemoCategory].Add(v);
        }
コード例 #3
0
ファイル: DemoLauncher.cs プロジェクト: zonneryx/SharpThreejs
        private static void AddDemo(BaseDemo v)
        {
            if (!Demos.ContainsKey(v.DemoCategory))
            {
                Demos.Add(v.DemoCategory, new List <BaseDemo>());
            }

            Demos[v.DemoCategory].Add(v);
        }
コード例 #4
0
        public static void Launch()
        {
            ActiveDemo = null;
            Demos = new Dictionary<string, List<BaseDemo>>();

            AddDemo(new webgl_interactive_draggablecubes("draggablecubes", "Interactive"));
            AddDemo(new misc_controls_trackball("trackball", "Interactive"));
            AddDemo(new misc_controls_transform("transform", "Interactive"));
            AddDemo(new demo_shadow("Shadow", "Geometry"));
            AddDemo(new geometry_demo("GeometryDemo", "Geometry"));
            AddDemo(new canvas_ascii_effect("ascii_effect", "Effects"));
            AddDemo(new demo_cloths("demo_cloths", "Effects"));
            AddDemo(new demo_carpet("demo_carpet", "Effects"));

            MakeList();
        }
コード例 #5
0
ファイル: DemoLauncher.cs プロジェクト: zonneryx/SharpThreejs
        public static void Launch()
        {
            ActiveDemo = null;
            Demos      = new Dictionary <string, List <BaseDemo> >();

            AddDemo(new webgl_interactive_draggablecubes("draggablecubes", "Interactive"));
            AddDemo(new misc_controls_trackball("trackball", "Interactive"));
            AddDemo(new misc_controls_transform("transform", "Interactive"));
            AddDemo(new demo_shadow("Shadow", "Geometry"));
            AddDemo(new geometry_demo("GeometryDemo", "Geometry"));
            AddDemo(new canvas_ascii_effect("ascii_effect", "Effects"));
            AddDemo(new demo_cloths("demo_cloths", "Effects"));
            AddDemo(new demo_carpet("demo_carpet", "Effects"));


            MakeList();
        }
コード例 #6
0
        private static void clickDemo(jQueryEvent arg)
        {
            BaseDemo d = arg.Data as BaseDemo;

            if (d == ActiveDemo) return;

            if (ActiveDemo != null)
            {
                ActiveDemo.Hide();
                DemoContainer.RemoveChild(ActiveDemo.Container);
                ActiveDemo = null;
            }

            ActiveDemo = d;
            DemoContainer.AppendChild(ActiveDemo.Container);

            Action doShow = delegate
            {
                ActiveDemo.Show();
            };

            Window.SetTimeout(doShow, 500);
        }