pass overlay member to virtual update function
This commit is contained in:
parent
f6af0bde03
commit
ab407f5346
2 changed files with 6 additions and 7 deletions
|
|
@ -559,7 +559,9 @@ void VulkanExampleBase::updateOverlay()
|
|||
ImGui::Text(deviceProperties.deviceName);
|
||||
ImGui::Text("%.2f ms/frame (%.1d fps)", (frameTimer * 1000.0f), lastFPS);
|
||||
|
||||
OnUpdateUIOverlay();
|
||||
ImGui::PushItemWidth(110.0f);
|
||||
OnUpdateUIOverlay(UIOverlay);
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
ImGui::End();
|
||||
ImGui::PopStyleVar();
|
||||
|
|
@ -569,8 +571,6 @@ void VulkanExampleBase::updateOverlay()
|
|||
UIOverlay->update();
|
||||
}
|
||||
|
||||
//void VulkanExampleBase::getOverlayText(VulkanTextOverlay*) {}
|
||||
|
||||
void VulkanExampleBase::prepareFrame()
|
||||
{
|
||||
// Acquire the next image from the swap chain
|
||||
|
|
@ -2153,4 +2153,4 @@ void VulkanExampleBase::setupSwapChain()
|
|||
swapChain.create(&width, &height, settings.vsync);
|
||||
}
|
||||
|
||||
void VulkanExampleBase::OnUpdateUIOverlay() {}
|
||||
void VulkanExampleBase::OnUpdateUIOverlay(vks::UIOverlay *overlay) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue