Panda3D
config_util.h
1 // Filename: config_util.h
2 // Created by: cary (04Jan00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef __CONFIG_UTIL_H__
16 #define __CONFIG_UTIL_H__
17 
18 #include "pandabase.h"
19 #include "notifyCategoryProxy.h"
20 #include "configVariableSearchPath.h"
21 #include "configVariableEnum.h"
22 #include "configVariableDouble.h"
23 #include "bamEnums.h"
24 #include "dconfig.h"
25 
26 class DSearchPath;
27 
28 ConfigureDecl(config_util, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL);
29 NotifyCategoryDecl(util, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL);
30 NotifyCategoryDecl(bam, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL);
31 
32 // Actually, we can't determine this config variable the normal way,
33 // because we must be able to access it at static init time. Instead
34 // of declaring it a global constant, we'll make it a member of
35 // MemoryUsage.
36 //extern EXPCL_PANDA_PUTIL const bool track_memory_usage;
37 
38 extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamEndian> bam_endian;
39 extern EXPCL_PANDA_PUTIL ConfigVariableBool bam_stdfloat_double;
40 extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamTextureMode> bam_texture_mode;
41 
42 BEGIN_PUBLISH
43 EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_model_path();
44 EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_plugin_path();
45 END_PUBLISH
46 
47 extern ConfigVariableDouble sleep_precision;
48 
49 extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_textures;
50 extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_simple_textures;
51 extern EXPCL_PANDA_PUTIL ConfigVariableBool cache_check_timestamps;
52 
53 extern EXPCL_PANDA_PUTIL void init_libputil();
54 
55 #endif /* __CONFIG_UTIL_H__ */
This is similar to a ConfigVariableList, but it returns its list as a DSearchPath, as a list of directories.
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a floating-point type.
This class specializes ConfigVariable as an enumerated type.
This class stores a list of directories that can be searched, in order, to locate a particular file...
Definition: dSearchPath.h:32