Update render.cpp
							parent
							
								
									34afb08673
								
							
						
					
					
						commit
						fc8a577516
					
				| 
						 | 
				
			
			@ -1634,6 +1634,7 @@
 | 
			
		|||
 | 
			
		||||
	void VulkanExample::OnUpdateUIOverlay(vks::UIOverlay *overlay)
 | 
			
		||||
	{
 | 
			
		||||
		GUIFunction guiFunc{};
 | 
			
		||||
		if (overlay->header("Settings")) {
 | 
			
		||||
			if (overlay->checkBox("Wireframe", &wireframe)) {
 | 
			
		||||
				buildCommandBuffers();
 | 
			
		||||
| 
						 | 
				
			
			@ -1659,11 +1660,21 @@
 | 
			
		|||
		{
 | 
			
		||||
			if (overlay->button("select model")) 
 | 
			
		||||
			{
 | 
			
		||||
				GUIFunction guiFunc{};
 | 
			
		||||
				
 | 
			
		||||
				std::string strModelFilePath;
 | 
			
		||||
				strModelFilePath = guiFunc.openFileFolderDialog();
 | 
			
		||||
				filePath.glTFModelFilePath = strModelFilePath;
 | 
			
		||||
				loadAssets();
 | 
			
		||||
				
 | 
			
		||||
			}
 | 
			
		||||
			if(overlay->button("select vertexShader"))
 | 
			
		||||
			{
 | 
			
		||||
				
 | 
			
		||||
				std::string strFilePath;
 | 
			
		||||
				strFilePath = guiFunc.openFileFolderDialog();
 | 
			
		||||
				filePath.glTFModelFilePath = strFilePath;
 | 
			
		||||
				loadAssets();
 | 
			
		||||
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue