Merge branch 'develop' into feature/cubiquity-version

This commit is contained in:
David Williams
2014-01-29 21:31:36 +01:00
2 changed files with 74 additions and 16 deletions

View File

@ -25,6 +25,22 @@ freely, subject to the following restrictions:
namespace PolyVox
{
namespace Impl
{
// Perhaps read this note when we want to move everything
// to the header file: http://stackoverflow.com/a/7834555
Logger*& getLoggerInstance()
{
static Logger* s_pLogger = new DefaultLogger;
return s_pLogger;
}
}
void setLogger(Logger* pLogger)
{
Impl::getLoggerInstance() = pLogger;
}
/**
* \return A pointer to the null stream.
*/