00001 // Filename: config_maya.cxx 00002 // Created by: drose (15Apr02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "config_maya.h" 00020 00021 #include <dconfig.h> 00022 00023 Configure(config_maya); 00024 NotifyCategoryDef(maya, ""); 00025 00026 ConfigureFn(config_maya) { 00027 init_libmaya(); 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: init_libmaya 00032 // Description: Initializes the library. This must be called at 00033 // least once before any of the functions or classes in 00034 // this library can be used. Normally it will be 00035 // called by the static initializers and need not be 00036 // called explicitly, but special cases exist. 00037 //////////////////////////////////////////////////////////////////// 00038 void 00039 init_libmaya() { 00040 static bool initialized = false; 00041 if (initialized) { 00042 return; 00043 } 00044 initialized = true; 00045 } 00046