Beispiel #1
0
 private void timer1_Tick(object sender, System.EventArgs e)
 {
     MonitorRecursos.MonitorearRecursos();
 }
Beispiel #2
0
        public FormPrincipal()
        {
            instance = this;

            InitializeComponent();

            formConsole = new FormConsole();

            toolStripStatusLabel1.Text = "";
            Console.ConsoleLineEvent  += new Console.ConsoleLineDelegate(Console_ConsoleLineEvent);

            StaticResources.Init();

            MonitorRecursos.StartMonitorearRecursos();

            ActualizarMenuComponentesYEntidades();

            sceneEdit = new Scene(true);
            sceneEdit.MakeCurrent();

            vistaConArbolEdit       = new VistaEscenaConArbol();
            vistaConArbolEdit.scene = sceneEdit;
            vistaConArbolEdit.vistaEscena.editMode = true;
            vistaConArbolEdit.Init();

            vistaConArbolEdit.Dock = DockStyle.Fill;
            tabPageEdit.Controls.Add(vistaConArbolEdit);


            listaRecursos             = new ListaRecursos();
            listaRecursos.vistaEscena = vistaConArbolEdit.vistaEscena;
            listaRecursos.Dock        = DockStyle.Left;
            tabPageEdit.Controls.Add(listaRecursos);

            scenePlay = new Scene(false);
            scenePlay.MakeCurrent();

            vistaConArbolPlay       = new VistaEscenaConArbol();
            vistaConArbolPlay.scene = scenePlay;
            vistaConArbolPlay.Init();

            vistaConArbolPlay.Dock = DockStyle.Fill;
            tabPagePlay.Controls.Add(vistaConArbolPlay);

            tabControl.SelectTab(tabPageEdit);

            tabControl_Selected(null, null);

            /*Transformation trans = new Transformation();
             *
             * trans.LocalRotation = Quaternion.FromAxisAngle(Vector3.UnitX, 1);
             * trans.LocalMatrix = trans.LocalMatrix;
             * trans.LocalRotationEuler = trans.LocalRotationEuler;
             *
             * trans.LocalRotation = Quaternion.FromAxisAngle(Vector3.UnitY, 1);
             * trans.LocalMatrix = trans.LocalMatrix;
             * trans.LocalRotationEuler = trans.LocalRotationEuler;
             *
             * trans.LocalRotation = Quaternion.FromAxisAngle(Vector3.UnitZ, 1);
             * trans.LocalMatrix = trans.LocalMatrix;
             * trans.LocalRotationEuler = trans.LocalRotationEuler;*/
        }