Panda3D
|
00001 // Filename: config_util.h 00002 // Created by: cary (04Jan00) 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 #ifndef __CONFIG_UTIL_H__ 00016 #define __CONFIG_UTIL_H__ 00017 00018 #include "pandabase.h" 00019 #include "notifyCategoryProxy.h" 00020 #include "configVariableSearchPath.h" 00021 #include "configVariableEnum.h" 00022 #include "configVariableDouble.h" 00023 #include "bamEnums.h" 00024 #include "dconfig.h" 00025 00026 class DSearchPath; 00027 00028 ConfigureDecl(config_util, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL); 00029 NotifyCategoryDecl(util, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL); 00030 NotifyCategoryDecl(bam, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL); 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 //extern EXPCL_PANDA_PUTIL const bool track_memory_usage; 00037 00038 extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamEndian> bam_endian; 00039 extern EXPCL_PANDA_PUTIL ConfigVariableBool bam_stdfloat_double; 00040 extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamTextureMode> bam_texture_mode; 00041 00042 BEGIN_PUBLISH 00043 EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_model_path(); 00044 EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_plugin_path(); 00045 END_PUBLISH 00046 00047 extern ConfigVariableDouble sleep_precision; 00048 00049 extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_textures; 00050 extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_simple_textures; 00051 00052 extern EXPCL_PANDA_PUTIL void init_libputil(); 00053 00054 #endif /* __CONFIG_UTIL_H__ */