// Copyright (C) 2002-2003 Gideon May (gideon@computer.org) // // Permission to copy, use, sell and distribute this software is granted // provided this copyright notice appears in all copies. // Permission to modify the code and to distribute modified code is granted // provided this copyright notice appears in all copies, and a notice // that the code was modified is included with the copyright notice. // // This software is provided "as is" without express or implied warranty, // and with no claim as to its suitability for any purpose. #include #include #include using namespace boost::python; namespace PyOSG { void init_Notify() { def("setNotifyLevel", &osg::setNotifyLevel); def("getNotifyLevel", &osg::getNotifyLevel); def("initNotifyLevel", &osg::initNotifyLevel); # define OSG_ENUM_NOTIFY_SEVERITY(VALUE) \ (severity.value(#VALUE, osg::VALUE)) enum_ severity("NotifySeverity"); OSG_ENUM_NOTIFY_SEVERITY(ALWAYS); OSG_ENUM_NOTIFY_SEVERITY(FATAL); OSG_ENUM_NOTIFY_SEVERITY(WARN); OSG_ENUM_NOTIFY_SEVERITY(NOTICE); OSG_ENUM_NOTIFY_SEVERITY(INFO); OSG_ENUM_NOTIFY_SEVERITY(DEBUG_INFO); OSG_ENUM_NOTIFY_SEVERITY(DEBUG_FP); } } // namespace