restructure more
This commit is contained in:
25
ThirdParty/entt/testbed/system/imgui_system.cpp
vendored
Normal file
25
ThirdParty/entt/testbed/system/imgui_system.cpp
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <component/input_listener_component.h>
|
||||
#include <component/rect_component.h>
|
||||
#include <component/renderable_component.h>
|
||||
#include <entt/davey/davey.hpp>
|
||||
#include <entt/entity/registry.hpp>
|
||||
#include <imgui.h>
|
||||
#include <system/imgui_system.h>
|
||||
|
||||
namespace testbed {
|
||||
|
||||
void imgui_system(const entt::registry ®istry) {
|
||||
ImGui::Begin("Davey - registry");
|
||||
entt::davey(registry);
|
||||
ImGui::End();
|
||||
|
||||
ImGui::Begin("Davey - view");
|
||||
entt::davey(registry.view<renderable_component, rect_component>());
|
||||
ImGui::End();
|
||||
|
||||
ImGui::Begin("Davey - storage");
|
||||
entt::davey(*registry.storage<input_listener_component>());
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
} // namespace testbed
|
||||
Reference in New Issue
Block a user