Exemplo n.º 1
0
        public void Systick()
        {
            //if (displaycontrol != null && displaycontrol.RequestRender)
            //  glwfc.Invalidate();
            var cdmt = gl3dcontroller.HandleKeyboardSlewsAndInvalidateIfMoved(true, OtherKeys);

            glwfc.Invalidate();
        }
Exemplo n.º 2
0
 private void SystemTick(object sender, EventArgs e)
 {
     PolledTimer.ProcessTimers();
     if (displaycontrol != null && displaycontrol.RequestRender)
     {
         glwfc.Invalidate();
     }
     gl3dcontroller.HandleKeyboardSlewsAndInvalidateIfMoved(true, Otherkeys);
 }
Exemplo n.º 3
0
 private void OtherKeys(GLOFC.Controller.KeyboardMonitor kb)
 {
     if (kb.HasBeenPressed(Keys.F5, GLOFC.Controller.KeyboardMonitor.ShiftState.None))
     {
         IGLProgramShader ps = items.Shader("Galaxy");
         if (ps != null)
         {
             ps.Enable = !ps.Enable;
             glwfc.Invalidate();
         }
     }
     if (kb.HasBeenPressed(Keys.F6, GLOFC.Controller.KeyboardMonitor.ShiftState.None))
     {
         IGLProgramShader ps = items.Shader("SD");
         if (ps != null)
         {
             ps.Enable = !ps.Enable;
             glwfc.Invalidate();
         }
     }
 }