Exemplo n.º 1
0
        public Viewport()
        {
            InitializeComponent();

            Viewport3D      = new MapEditor3D();
            Viewport3D.Dock = DockStyle.Fill;
            stPanel1.Controls.Add(Viewport3D);

            AnimationPanel      = new STAnimationPanel();
            AnimationPanel.Dock = DockStyle.Fill;
            AnimationPanel.SetViewport(Viewport3D.gl_Control);
            stPanel3.Controls.Add(AnimationPanel);

            activeModelCB.Items.Add("All Models");
            pickingModeCB.Items.Add("Normal");
            pickingModeCB.Items.Add("Object Selection");
            pickingModeCB.Items.Add("Mesh Selection");
            pickingModeCB.SelectedIndex = 0;
        }
Exemplo n.º 2
0
        public void ShowAnimationPanel()
        {
            DockContent dockContent = new DockContent();

            AnimationPanel                   = new STAnimationPanel();
            AnimationPanel.Dock              = DockStyle.Fill;
            AnimationPanel.AnimationPlaying += OnAnimationPlaying;
            AnimationPanel.SetViewport(ActiveViewport.GetGLControl());
            dockContent.Controls.Add(AnimationPanel);
            LayoutTextureList.Show(dockPanel1, DockState.DockRight);

            if (ActiveViewport != null)
            {
                dockContent.Show(ActiveViewport.Pane, DockAlignment.Bottom, 0.2);
            }
            else
            {
                dockContent.Show(dockPanel1, DockState.DockBottom);
            }
        }