MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / update

Method update

framework/gui.h:1367–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1365template <vkb::BindingType bindingType>
1366inline void Gui<bindingType>::update(const float delta_time)
1367{
1368 if (visible != prev_visible)
1369 {
1370 drawer.set_dirty(true);
1371 prev_visible = visible;
1372 }
1373
1374 if (!visible)
1375 {
1376 ImGui::EndFrame();
1377 return;
1378 }
1379
1380 // Update imGui
1381 ImGuiIO &io = ImGui::GetIO();
1382 auto extent = render_context.get_surface_extent();
1383 resize(extent.width, extent.height);
1384 io.DeltaTime = delta_time;
1385
1386 // Render to generate draw buffers
1387 ImGui::Render();
1388}
1389
1390template <vkb::BindingType bindingType>
1391inline bool Gui<bindingType>::update_buffers()
1392{

Callers 2

load_sceneMethod · 0.45
update_buffersMethod · 0.45

Calls 1

set_dirtyMethod · 0.80

Tested by

no test coverage detected