Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();
            this.checkBox_OpenGLDrawAxis.Checked    = Properties.Settings.Default.OpenGLDrawAxis;
            this.toolStripStatusLabel_AnimTime.Text = "";
            _kbd = new KeyboardInput();
            Matrix4 opengl_camera_init = Matrix4.LookAt(0, 50, 500, 0, 0, 0, 0, 1, 0).Inverted();

            _camera = new CameraDevice(opengl_camera_init);
            // manually register the mousewheel event handler.
            this.glControl1.MouseWheel += new MouseEventHandler(this.glControl1_MouseWheel);
            _world = new World();
            _cmd   = new CommandLine(_world, this);
            Recent.CurrentlyOpenFilePathChanged
                += (new_filepath) => this.Text = "Current file: " + new_filepath;
            RefreshOpenRecentMenu();
        }
Exemplo n.º 2
0
        private void button_ResetCamera_Click(object sender, EventArgs e)
        {
            Matrix4 opengl_camera_init = Matrix4.LookAt(0, 50, 500, 0, 0, 0, 0, 1, 0).Inverted();

            _camera = new CameraDevice(opengl_camera_init);
        }