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