You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need the uniform class for all ImGui widgets. It can be something that saves "update" and "draw" methods as lambdas or implements it in the derived class.
Example 1: Implementing as lambda wrapper.
MEOV::ImGui::Widget::Ref log{ new ... };
log->SetUpdate([](std::chrono::duration<double> delta) {
// update some data
});
log->SetDraw([](MEOV::Graphics::Ref *g) {
ImGui::Begin("Some widget");
ImGui::Text("Hi");
ImGui::End();
});
We need the uniform class for all ImGui widgets. It can be something that saves "update" and "draw" methods as lambdas or implements it in the derived class.
Example 1: Implementing as lambda wrapper.
Example 2: Implementing as derived classes:
The text was updated successfully, but these errors were encountered: