Replace "SMeshBuffer.h" with "CMeshBuffer.h"
- Replaces references to
SMeshBuffer.hwithCMeshBuffer.hin header files - Adds
using namespace irr;to the corresponding.cppfiles in/src- This will make it easier to remove
using namespace irrfrom header files in the future
- This will make it easier to remove
- Make namespaces more explicit (
video::SColortoirr::video::SColor)- This will also make it easier to remove
using namespace irrfrom header files in the future
- This will also make it easier to remove
- Organize header includes to better indicate what includes come from
/irrdirectly-
#include "irr_ptr.h"->#include <irr_ptr.h>as an example - Moved irr includes so they are visually separate from other includes
-
- Delete
SMeshBuffer.h
To do
This PR is Ready for Review.
Make namespaces more explicit (
video::SColortoirr::video::SColor)
- This will also make it easier to remove
using namespace irrfrom header files in the future
I don't think we want this. The current way is fine, less visual clutter and faster to type.
Make namespaces more explicit (
video::SColortoirr::video::SColor)
- This will also make it easier to remove
using namespace irrfrom header files in the futureI don't think we want this. The current way is fine, less visual clutter and faster to type.
True, but I think we should aim to take using out of header files as it's bad C++ practice and would eliminate namespace poisoning.
Would it be acceptable to add something like namespace color = irr::color; to the top of the header files instead?
Oops, I didn't mean to push here
True, but I think we should aim to take
usingout of header files as it's bad C++ practice and would eliminate namespace poisoning.Would it be acceptable to add something like
namespace color = irr::color;to the top of the header files instead?
This makes sense in principle, but Irrlicht is not an external library (anymore) and entirely under our control.
The irr namespace has very few direct members.
This makes sense in principle, but Irrlicht is not an external library (anymore) and entirely under our control. The
irrnamespace has very few direct members.
I see. Would the ultimate goal be to get rid of the irr namespace then?
Dunno.