Пример #1
0
 void ModelAnimTimerElapsed(Object sender, ElapsedEventArgs args)
 {
     if (m_camera.AnimTick() == false)
     {
         m_modelAnimTmr.Stop();
         m_modelAnimTmr = null;
     }
     glControl1.Invalidate();
 }
Пример #2
0
        void m_modelAnimTmr_Tick(object sender, EventArgs e)
        {
            bool cameraon = m_camera.AnimTick();
            bool axison   = m_axisCam.AnimTick();

            if ((cameraon == false) && (axison == false))
            {
                m_modelAnimTmr.Stop();
                m_modelAnimTmr = null;
            }
            UpdateView();
        }