16 #include <assimp/DefaultLogger.hpp> 26 if (_ptr ==
nullptr) {
29 if (_ptr != Assimp::DefaultLogger::get()) {
30 Assimp::DefaultLogger::set(_ptr);
37 void PandaLogger::OnDebug(
const char *message) {
38 assimp_cat.debug() << message <<
"\n";
44 void PandaLogger::OnError(
const char *message) {
45 assimp_cat.error() << message <<
"\n";
51 void PandaLogger::OnInfo(
const char *message) {
52 assimp_cat.info() << message <<
"\n";
58 void PandaLogger::OnWarn(
const char *message) {
59 assimp_cat.warning() << message <<
"\n";
Custom implementation of Assimp::Logger.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void set_default()
Makes sure there's a global PandaLogger object and makes sure that it is Assimp's default logger.