imgui_system.cpp 402 B

123456789101112131415161718
  1. #include <entt/entity/registry.hpp>
  2. #include <imgui.h>
  3. #include <system/imgui_system.h>
  4. #include <entt/davey/davey.hpp>
  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 - storage");
  11. entt::davey(*registry.storage<int>());
  12. ImGui::End();
  13. }
  14. } // namespace testbed