imgui_system.cpp 502 B

12345678910111213141516171819202122
  1. #include <entt/davey/davey.hpp>
  2. #include <entt/entity/registry.hpp>
  3. #include <imgui.h>
  4. #include <system/imgui_system.h>
  5. namespace testbed {
  6. void imgui_system(const entt::registry &registry) {
  7. ImGui::Begin("Davey - registry");
  8. entt::davey(registry);
  9. ImGui::End();
  10. ImGui::Begin("Davey - view");
  11. entt::davey(registry.view<int, double>());
  12. ImGui::End();
  13. ImGui::Begin("Davey - storage");
  14. entt::davey(*registry.storage<int>());
  15. ImGui::End();
  16. }
  17. } // namespace testbed