adopt engine stuff to new update strategy

This commit is contained in:
2020-12-26 19:29:39 +01:00
parent c1ae30c89c
commit 840b663d5e
28 changed files with 351 additions and 324 deletions

View File

@ -116,11 +116,11 @@ TEST(blur_render_task, it) {
for (int i = 0; i < 10; i++) {
auto e = scene.create();
auto& t = scene.emplace<MM::Components::Transform2D>(e);
t.position.x = i * 9.f - 40;
t.position.x = float(i) * 9.f - 40.f;
t.scale = {5,5};
auto& v = scene.emplace<MM::Components::Velocity2D>(e);
v.rotation = i * 0.3f;
v.rotation = float(i) * 0.3f;
if (mt() % 2) {
auto& col = scene.emplace<MM::Components::Color>(e);
@ -132,12 +132,6 @@ TEST(blur_render_task, it) {
}
engine.addUpdate(
[&](MM::Engine&) {
ImGui::ColorEdit4("rect_col", &bsrr_rend.default_color[0]);
}
);
engine.run();
}