Exemplo n.º 1
0
        private void glControl1_Paint(object sender, PaintEventArgs e)
        {
            if (!glContextCreated)
            {
                return; //can't do anything with this, heh
            }
            glControl1.MakeCurrent();
            renderer.Pitch           = (trackBar2.Value - 8) * -22.5d;
            renderer.Angle           = (trackBar1.Value - 8) * -22.5d;
            renderer.ShowBBs         = chkShowBBs.Checked;
            renderer.ShowNormals     = chkNorm.Checked;
            renderer.Wireframe       = chkWireframe.Checked;
            renderer.ShowRadius      = chkRadius.Checked;
            renderer.EmulateSoftware = chkSoftwareOverdraw.Checked;
            if (chkAnimation.Checked)
            {
                renderer.Frame = (int)numericUpDown1.Value;
            }
            else
            {
                renderer.Frame = -1;
            }

            renderer.Draw();

            glControl1.SwapBuffers();
        }
Exemplo n.º 2
0
        private void glControl1_Paint(object sender, PaintEventArgs e)
        {
            if (!glContextCreated)
            {
                return; //can't do anything with this, heh
            }
            if (nudElementNum.Value < 0)
            {
                return;
            }

            if (datafile.replacedModels.Count == 0)
            {
                return; //can't do anything with no models.
            }
            glControl1.MakeCurrent();

            modelRenderer.Pitch = (trackBar3.Value - 8) * -22.5d;
            modelRenderer.Angle = (trackBar1.Value - 8) * -22.5d;
            //modelRenderer.ShowBBs = chkShowBBs.Checked;
            //modelRenderer.ShowNormals = chkNorm.Checked;
            //modelRenderer.Wireframe = chkWireframe.Checked;
            //modelRenderer.ShowRadius = chkRadius.Checked;

            modelRenderer.Draw();
            glControl1.SwapBuffers();
        }
Exemplo n.º 3
0
        private void glControl1_Paint(object sender, PaintEventArgs e)
        {
            if (noPMView)
            {
                return;
            }
            if (!glContextCreated)
            {
                return; //can't do anything with this, heh
            }
            glControl1.MakeCurrent();

            modelRenderer.Pitch       = (trackBar3.Value - 8) * -22.5d;
            modelRenderer.Angle       = (trackBar1.Value - 8) * -22.5d;
            modelRenderer.ShowBBs     = chkShowBBs.Checked;
            modelRenderer.ShowNormals = chkNorm.Checked;
            modelRenderer.Wireframe   = chkWireframe.Checked;
            modelRenderer.ShowRadius  = chkRadius.Checked;

            modelRenderer.Draw();
            glControl1.SwapBuffers();
        }