00001 // Filename: config_daeegg.cxx 00002 // Created by: pro-rsoft (30Oct08) 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_daeegg.h" 00016 #include "daeCharacter.h" 00017 #include "daeMaterials.h" 00018 00019 #include "dconfig.h" 00020 00021 Configure(config_daeegg); 00022 NotifyCategoryDef(daeegg, ""); 00023 00024 ConfigureFn(config_daeegg) { 00025 init_libdaeegg(); 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: init_libdaeegg 00030 // Description: Initializes the library. This must be called at 00031 // least once before any of the functions or classes in 00032 // this library can be used. Normally it will be 00033 // called by the static initializers and need not be 00034 // called explicitly, but special cases exist. 00035 //////////////////////////////////////////////////////////////////// 00036 void 00037 init_libdaeegg() { 00038 static bool initialized = false; 00039 if (initialized) { 00040 return; 00041 } 00042 initialized = true; 00043 00044 DaeCharacter::init_type(); 00045 DaeMaterials::init_type(); 00046 } 00047