diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-07-02 20:29:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-02 20:29:58 +0200 |
commit | 94c294bfdcfb7caa84c88649f3630605ed90e884 (patch) | |
tree | 94fdecef9a4f1204effb95e800f7c2cb39126a67 /src/clientobject.h | |
parent | 51104d9cd445da21adc731fb820bbb7d82b45d64 (diff) | |
download | minetest-94c294bfdcfb7caa84c88649f3630605ed90e884.tar.gz minetest-94c294bfdcfb7caa84c88649f3630605ed90e884.tar.bz2 minetest-94c294bfdcfb7caa84c88649f3630605ed90e884.zip |
Irrlicht cleanup: cleanup various object to use RenderingEngine (#6088)
* Irrlicht cleanup: cleanup various object to use RenderingEngine
* CAO doesn't need scenemanager in addToScene
* Camera doesn't need VideoDriver pointer or SceneManager in constructor
* Hud doesn't need driver & scene manager in constructor
* Hud doesn't need scenemanager pointer
* Tile.h doesn't need IrrlichtDevice header (just SMaterial)
* WieldMeshSceneNode: only take scene, we always use scene root node as parent
Diffstat (limited to 'src/clientobject.h')
-rw-r--r-- | src/clientobject.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clientobject.h b/src/clientobject.h index d81e8e7e6..f8075d65a 100644 --- a/src/clientobject.h +++ b/src/clientobject.h @@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_extrabloated.h" #include "activeobject.h" -#include <map> #include <unordered_map> class ClientEnvironment; @@ -39,7 +38,7 @@ public: ClientActiveObject(u16 id, Client *client, ClientEnvironment *env); virtual ~ClientActiveObject(); - virtual void addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc) {}; + virtual void addToScene(ITextureSource *tsrc) {}; virtual void removeFromScene(bool permanent) {} // 0 <= light_at_pos <= LIGHT_SUN virtual void updateLight(u8 light_at_pos){} |