예제 #1
0
파일: YParser.cs 프로젝트: gigc/tgc-kinect
 private void LoadTextures()
 {
     _textures = new TgcTexture[_cantLayers];
     for (int i = 0; i < _materialNames.Length; i++)
     {
         var mn = _materialNames[i];
         _textures[i] = FocusParser.getTexture(mn);
     }
 }
예제 #2
0
        private void LoadTextures()
        {
            if (progress_bar != null)
            {
                progress_bar.SetRange(0, _cantTextures - 1, "Cargando texturas..");
            }

            _textures = new TgcTexture[_cantTextures];
            for (int i = 0; i < _texturesId.Length; i++)
            {
                if (progress_bar != null)
                {
                    progress_bar.SetPos(i);
                }
                GuiController.Instance.MessageLoop();

                _textures[i] = FocusParser.getTexture(_texturesId[i]);
            }
        }