]> git.lizzy.rs Git - dragonfireclient.git/commit - src/gui/guiFormSpecMenu.cpp
refacto: RenderingEngine::get_scene_manager() is now not callable from singleton
authorLoic Blot <loic.blot@unix-experience.fr>
Thu, 29 Apr 2021 07:40:56 +0000 (09:40 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Mon, 3 May 2021 17:49:19 +0000 (19:49 +0200)
commit5a02c376ea5f2e7f1dd0a2bd4f08bf953ed4bfc8
treed4bd7334bad7f1bf0d01d1dc6acbaccd34132823
parentccdd886e273ec2fa5f8cfe1d1f474914eccb2abf
refacto: RenderingEngine::get_scene_manager() is now not callable from singleton

This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects

Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
src/client/client.cpp
src/client/client.h
src/client/clientenvironment.cpp
src/client/content_mapblock.cpp
src/client/content_mapblock.h
src/client/mapblock_mesh.cpp
src/client/particles.cpp
src/client/renderingengine.h
src/client/wieldmesh.cpp
src/gui/guiFormSpecMenu.cpp
src/nodedef.cpp