00001 // Filename: config_util.h 00002 // Created by: cary (04Jan00) 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 #ifndef __CONFIG_UTIL_H__ 00020 #define __CONFIG_UTIL_H__ 00021 00022 #include "pandabase.h" 00023 #include "notifyCategoryProxy.h" 00024 #include "dconfig.h" 00025 00026 class DSearchPath; 00027 00028 ConfigureDecl(config_util, EXPCL_PANDA, EXPTP_PANDA); 00029 NotifyCategoryDecl(util, EXPCL_PANDA, EXPTP_PANDA); 00030 NotifyCategoryDecl(bam, EXPCL_PANDA, EXPTP_PANDA); 00031 00032 // Actually, we can't determine this config variable the normal way, 00033 // because we must be able to access it at static init time. Instead 00034 // of declaring it a global constant, we'll make it a member of 00035 // MemoryUsage. 00036 00037 //extern EXPCL_PANDA const bool track_memory_usage; 00038 00039 // These are functions instead of constant variables because they are 00040 // computed based on the concatenation of all appearances of the 00041 // corresponding variable in the config files. 00042 00043 BEGIN_PUBLISH 00044 EXPCL_PANDA DSearchPath &get_model_path(); 00045 EXPCL_PANDA DSearchPath &get_texture_path(); 00046 EXPCL_PANDA DSearchPath &get_sound_path(); 00047 END_PUBLISH 00048 00049 #endif /* __CONFIG_UTIL_H__ */