00001 // Filename: config_cftalk.cxx 00002 // Created by: drose (26Mar09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "config_cftalk.h" 00016 #include "cfCommand.h" 00017 #include "pandaSystem.h" 00018 00019 ConfigureDef(config_cftalk); 00020 NotifyCategoryDef(cftalk, ""); 00021 00022 ConfigureFn(config_cftalk) { 00023 init_libcftalk(); 00024 } 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: init_libcftalk 00028 // Description: Initializes the library. This must be called at 00029 // least once before any of the functions or classes in 00030 // this library can be used. Normally it will be 00031 // called by the static initializers and need not be 00032 // called explicitly, but special cases exist. 00033 //////////////////////////////////////////////////////////////////// 00034 void 00035 init_libcftalk() { 00036 static bool initialized = false; 00037 if (initialized) { 00038 return; 00039 } 00040 initialized = true; 00041 00042 CFCommand::init_type(); 00043 CFDoCullCommand::init_type(); 00044 00045 CFDoCullCommand::register_with_read_factory(); 00046 00047 PandaSystem *ps = PandaSystem::get_global_ptr(); 00048 ps->add_system("cftalk"); 00049 }