add shared test
This commit is contained in:
@@ -9,6 +9,14 @@ namespace sandbox
|
||||
|
||||
// ATTENTION: активировать сигнальную систему в детях-компонентах
|
||||
m_local_panel.on_attach();
|
||||
|
||||
for (int i = 0; i < 200; ++i)
|
||||
{
|
||||
auto lp = std::make_shared<local_panel>();
|
||||
lp->on_attach();
|
||||
m_local_panel_hub.push_back(lp);
|
||||
}
|
||||
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
@@ -21,6 +29,8 @@ namespace sandbox
|
||||
|
||||
m_local_panel.render();
|
||||
|
||||
for(auto& lp : m_local_panel_hub) lp->render();
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace sandbox
|
||||
ImVec2 m_pos = ImVec2{ 400.f, 400.f };
|
||||
|
||||
local_panel m_local_panel;
|
||||
|
||||
std::vector<std::shared_ptr<local_panel>> m_local_panel_hub;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user