add on attach for emit signal

This commit is contained in:
2025-02-28 14:47:36 +03:00
parent 3204711f22
commit 4ec64aaa28
6 changed files with 25 additions and 17 deletions

View File

@@ -28,7 +28,12 @@ namespace VE
void push_layer(Args*... args)
{
(m_layers_stack.push_back(args), ...);
attach_layers();
}
template<typename... Args>
void on_attach(Args*... args)
{
(args->on_attach(), ...);
}
private: