Panda3D
Loading...
Searching...
No Matches
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"
21#include "configVariableEnum.h"
23#include "configVariableInt.h"
24#include "bamEnums.h"
25#include "dconfig.h"
26
27class DSearchPath;
28
29ConfigureDecl(config_putil, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL);
30NotifyCategoryDecl(util, EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL);
31NotifyCategoryDecl(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
38extern EXPCL_PANDA_PUTIL ConfigVariableInt bam_version;
39extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamEndian> bam_endian;
40extern EXPCL_PANDA_PUTIL ConfigVariableBool bam_stdfloat_double;
41extern EXPCL_PANDA_PUTIL ConfigVariableEnum<BamEnums::BamTextureMode> bam_texture_mode;
42
43BEGIN_PUBLISH
44EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_model_path();
45EXPCL_PANDA_PUTIL ConfigVariableSearchPath &get_plugin_path();
46END_PUBLISH
47
48extern ConfigVariableDouble sleep_precision;
49
50extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_textures;
51extern EXPCL_PANDA_PUTIL ConfigVariableBool preload_simple_textures;
52extern EXPCL_PANDA_PUTIL ConfigVariableBool compressed_textures;
53extern EXPCL_PANDA_PUTIL ConfigVariableBool cache_check_timestamps;
54
55extern EXPCL_PANDA_PUTIL void init_libputil();
56
57#endif /* __CONFIG_UTIL_H__ */
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 is a convenience class to specialize ConfigVariable as an integer type.
This is similar to a ConfigVariableList, but it returns its list as a DSearchPath,...
This class stores a list of directories that can be searched, in order, to locate a particular file.
Definition dSearchPath.h:28
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDA_PUTIL void init_libputil()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.