davey: present_view function (with quick test example)
This commit is contained in:
@@ -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 ®istry) {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user