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
This commit is contained in:
@@ -236,7 +236,7 @@ class GenericCAO : public ClientActiveObject
|
||||
|
||||
void removeFromScene(bool permanent);
|
||||
|
||||
void addToScene(ITextureSource *tsrc);
|
||||
void addToScene(ITextureSource *tsrc, irr::scene::ISceneManager *smgr);
|
||||
|
||||
inline void expireVisuals()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user