private void LoadTextures() { _textures = new TgcTexture[_cantLayers]; for (int i = 0; i < _materialNames.Length; i++) { var mn = _materialNames[i]; _textures[i] = FocusParser.getTexture(mn); } }
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]); } }