Panda3D
panda
src
skel
config_skel.cxx
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_skel.cxx
10
* @author jyelon
11
* @date 2007-02-09
12
*/
13
14
#include "
config_skel.h
"
15
#include "
basicSkel.h
"
16
#include "
typedSkel.h
"
17
#include "
dconfig.h
"
18
19
#if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_PANDASKEL)
20
#error Buildsystem error: BUILDING_PANDASKEL not defined
21
#endif
22
23
Configure(config_skel);
24
NotifyCategoryDef(skel,
""
);
25
26
ConfigureFn(config_skel) {
27
init_libskel
();
28
}
29
30
ConfigVariableInt
skel_sample_config_variable
31
(
"skel-sample-config-variable"
, 3);
32
33
/**
34
* Initializes the library. This must be called at least once before any of
35
* the functions or classes in this library can be used. Normally it will be
36
* called by the static initializers and need not be called explicitly, but
37
* special cases exist.
38
*/
39
void
40
init_libskel
() {
41
static
bool
initialized =
false
;
42
if
(initialized) {
43
return
;
44
}
45
initialized =
true
;
46
47
TypedSkel::init_type();
48
}
config_skel.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
init_libskel
void init_libskel()
Initializes the library.
Definition:
config_skel.cxx:40
basicSkel.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
typedSkel.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ConfigVariableInt
This is a convenience class to specialize ConfigVariable as an integer type.
Definition:
configVariableInt.h:24
Generated on Sun Dec 27 2020 13:23:16 for Panda3D by
1.8.20