From 809e68fdc0f7855730ee3409e6f1ddfe975b671f Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 29 Apr 2021 09:07:36 +0200 Subject: refacto: don't use RenderingEngine singleton on CAO * we don't need on CAO side more than SceneManager, and temporary. Pass only required SceneManager as a parameter to build CAO and add them to the current scene * Use temporary the RenderingEngine singleton from ClientEnvironment, waitfor for better solution * Make ClientActiveObject::addToScene virtual function mandatory to be defined by children to ensure we don't forget to properly define it --- src/unittest/test_clientactiveobjectmgr.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/unittest/test_clientactiveobjectmgr.cpp') diff --git a/src/unittest/test_clientactiveobjectmgr.cpp b/src/unittest/test_clientactiveobjectmgr.cpp index 4d2846c8d..a43855c19 100644 --- a/src/unittest/test_clientactiveobjectmgr.cpp +++ b/src/unittest/test_clientactiveobjectmgr.cpp @@ -29,6 +29,7 @@ public: TestClientActiveObject() : ClientActiveObject(0, nullptr, nullptr) {} ~TestClientActiveObject() = default; ActiveObjectType getType() const { return ACTIVEOBJECT_TYPE_TEST; } + virtual void addToScene(ITextureSource *tsrc, irr::scene::ISceneManager *smgr) {} }; class TestClientActiveObjectMgr : public TestBase -- cgit v1.2.3