#include #include #include #include #include #include #include #include #include #include static char* argv0; TEST(imgui_scene_tools, it) { MM::Engine engine; auto& sdl_ss = engine.addService(SDL_INIT_VIDEO); ASSERT_TRUE(engine.enableService()); sdl_ss.createGLWindow("imgui_engine_tools_test", 1280, 720); engine.addService(argv0, "imgui_engine_tools_test"); ASSERT_TRUE(engine.enableService()); engine.addService(); ASSERT_TRUE(engine.enableService()); engine.addService(); ASSERT_TRUE(engine.enableService()); engine.addService(); ASSERT_TRUE(engine.enableService()); auto& rs = engine.addService(); ASSERT_TRUE(engine.enableService()); rs.addRenderTask(engine); #ifdef MM_AUTOTEST engine.addService(50); // 50 frames ASSERT_TRUE(engine.enableService()); #endif engine.run(); sdl_ss.destroyWindow(); } int main(int argc, char** argv) { argv0 = argv[0]; ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }