| 1654 | |
| 1655 | gui->update(delta_time); |
| 1656 | } |
| 1657 | } |
| 1658 | |
| 1659 | template <vkb::BindingType bindingType> |
| 1660 | inline void VulkanSample<bindingType>::update_scene(float delta_time) |
| 1661 | { |
| 1662 | if (scene) |
| 1663 | { |
| 1664 | // Update scripts |
| 1665 | if (scene->has_component<sg::Script>()) |
| 1666 | { |
| 1667 | auto scripts = scene->get_components<sg::Script>(); |
| 1668 | |
| 1669 | for (auto script : scripts) |
| 1670 | { |
| 1671 | script->update(delta_time); |
| 1672 | } |
| 1673 | } |
| 1674 | |
| 1675 | // Update animations |
| 1676 | if (scene->has_component<sg::Animation>()) |
| 1677 | { |
| 1678 | auto animations = scene->get_components<sg::Animation>(); |
| 1679 | |
| 1680 | for (auto animation : animations) |
| 1681 | { |
| 1682 | animation->update(delta_time); |
| 1683 | } |
| 1684 | } |
| 1685 | } |
| 1686 | } |
| 1687 | |
| 1688 | template <vkb::BindingType bindingType> |
| 1689 | inline void VulkanSample<bindingType>::update_stats(float delta_time) |
no test coverage detected