     }
     
     @objc func onViewButtonTapped(sender: UIBarButtonItem) {
+        
+        //show metal VC
+        
         metalViewPanelVC.modalPresentationStyle = .popover
         metalViewPanelVC.popoverPresentationController?.barButtonItem = sender
         

            self.codeViewController?.setTexture(filename: filename, index: index)
        }
        
        let playBarItem = UIBarButtonItem(title: "Play", style: .plain, target: self, action: #selector(self.onPlayButtonTapped))
        let viewBarItem = UIBarButtonItem(title: "View", style: .plain, target: self, action: #selector(self.onViewButtonTapped))
        let texturesBarItem = UIBarButtonItem(title: "Textures", style: .plain, target: self, action: #selector(self.onTexturesButtonTapped))

    }
    
    @objc func onTexturesButtonTapped(sender: UIBarButtonItem) {
        
        //show texture selector
        
        textureSelectorPanelVC.modalPresentationStyle = .popover
        textureSelectorPanelVC.popoverPresentationController?.barButtonItem = sender
        
