Bambo-Borris / box2d

Fork of Box2D as a playground for adding modern C++ and build system improvements to an existing C++ library. This fork is not intended to be merged back into Box2D. Please use the existing Box2D unless you have a good reason to use this one!
https://box2d.org
MIT License
2 stars 0 forks source link

Apply namespacing to Box2D #7

Open Bambo-Borris opened 1 year ago

Bambo-Borris commented 1 year ago

Currently Box2D has no namespace and uses a naming convention of b2ClassName. Preferred alternative would be to forgo the b2 prefix, and apply a namespace to all Box2D types.

HRSoftware commented 1 year ago

Would it be just the namespace b2 {..} or are we thinking of nested namespaces? If so, what are the different namespaces?

ChrisThrasher commented 1 year ago

Just namespace b2 so we can remove the b2_ prefix from all identifiers.

Bambo-Borris commented 1 year ago

Yeah exactly what @ChrisThrasher was referring to is how I envision the change