Example #1
0
        void interfaceThread()
        {
            while (CrowInterface.ClientRectangle.Size.Width == 0)
            {
                Thread.Sleep(5);
            }

            while (true)
            {
                CrowInterface.Update();
                //Thread.Sleep (1);
            }
        }
Example #2
0
        void interfaceThread()
        {
            CrowInterface.Quit += Quit;
            CrowInterface.MouseCursorChanged += CrowInterface_MouseCursorChanged;
            while (CrowInterface.ClientRectangle.Size.Width == 0)
            {
                Thread.Sleep(5);
            }

            while (true)
            {
                CrowInterface.Update();
                Thread.Sleep(1);
            }
        }
Example #3
0
        void crow_thread_func()
        {
            vkvgDev = new vkvg.Device(instance.Handle, phy.Handle, dev.VkDev.Handle, presentQueue.qFamIndex,
                                      vkvg.SampleCount.Sample_4, presentQueue.index);

            crow = new Interface(vkvgDev, (int)swapChain.Width, (int)swapChain.Height);

            isRunning = true;
            while (isRunning)
            {
                crow.Update();
                Thread.Sleep(2);
            }

            dev.WaitIdle();
            crow.Dispose();
            vkvgDev.Dispose();
            crow = null;
        }
Example #4
0
 public override void Update()
 {
     NotifyValueChanged("fps", fps);
     iFace.Update();
 }