tobspr / LUI

Lightweight User Interface for Panda3D
MIT License
84 stars 24 forks source link

Fixes for building against current Panda build #48

Closed rdb closed 6 years ago

rdb commented 6 years ago

Building against a recent Panda was broken for several reasons:

  1. We do have an unordered_map header in Panda, so the #define was causing that to no longer parse correctly.
  2. Panda3D no longer has using namespace std; (see panda3d/panda3d#335) so this adds that into config_lui.h for now. It would be even better to use using std::string; etc. for each individual thing that is used from std without prefix, or even to fix the headers to just use the std prefix.
  3. Panda3D has nullptr_t overloads of PointerTo, so using NULL for PointerTo in a few places caused ambiguity. I've just replaced all instances of NULL with nullptr.

Fixes #47

tobspr commented 6 years ago

Thanks a lot!