davey: present_view function (with quick test example)

This commit is contained in:
skypjack
2025-04-24 19:15:36 +02:00
parent 292cbd3d95
commit b0afed4bd0
2 changed files with 41 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#include <entt/davey/davey.hpp>
#include <entt/entity/registry.hpp>
#include <imgui.h>
#include <system/imgui_system.h>
#include <entt/davey/davey.hpp>
namespace testbed {
@@ -10,6 +10,10 @@ void imgui_system(const entt::registry &registry) {
entt::davey(registry);
ImGui::End();
ImGui::Begin("Davey - view");
entt::davey(registry.view<int, double>());
ImGui::End();
ImGui::Begin("Davey - storage");
entt::davey(*registry.storage<int>());
ImGui::End();