Panda3D

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