Пример #1
0
        private void PrcDepthData()
        {
            while (!isPrcStop)
            {
                if (iminectInitialized)
                {
                    retDepth = ImiWrapper.GetDepthData(depthData, 30);

                    if (retDepth == ImiWrapper.ErrorCode.OK)
                    {
                        if (!prcDepthDrawLock)
                        {
                            UpdateDepthDrawData();
                            prcDepthDrawLock = true;
                        }
                        imiManager.Enqueue(UpdateDepthTex());
                    }
                }
                Thread.Sleep(THREAD_INTERVAL);
            }
        }