Update render.cpp

pull/2/head
ink-soul 2023-06-01 16:41:14 +08:00
parent 34afb08673
commit fc8a577516
1 changed files with 12 additions and 1 deletions

View File

@ -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();
}
}
}