Panda3D

Loading...
Searching...
No Matches
config_xfile.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_xfile.cxx
10 * @author drose
11 * @date 2000-08-24
12 */
13
14#include "config_xfile.h"
15#include "xFile.h"
16#include "xFileDataDef.h"
17#include "xFileDataObject.h"
18#include "xFileDataObjectArray.h"
19#include "xFileDataObjectDouble.h"
20#include "xFileDataObjectInteger.h"
21#include "xFileDataObjectString.h"
22#include "xFileDataNode.h"
23#include "xFileDataNodeReference.h"
24#include "xFileDataNodeTemplate.h"
25#include "xFileNode.h"
26#include "xFileTemplate.h"
27
28#include "dconfig.h"
29
30Configure(config_xfile);
31NotifyCategoryDef(xfile, "");
32
33// This is set true, typically by the user's command-line options, to indicate
34// that when a X file is generated it should include all geometry in one big
35// mesh, instead of preserving the hierarchy from the source egg file.
36 bool xfile_one_mesh = false;
37
38ConfigureFn(config_xfile) {
39 init_libxfile();
40}
41
42/**
43 * Initializes the library. This must be called at least once before any of
44 * the functions or classes in this library can be used. Normally it will be
45 * called by the static initializers and need not be called explicitly, but
46 * special cases exist.
47 */
48 void
49 init_libxfile() {
50 static bool initialized = false;
51 if (initialized) {
52 return;
53 }
54 initialized = true;
55
56 XFile::init_type();
57 XFileDataDef::init_type();
58 XFileDataObject::init_type();
59 XFileDataObjectArray::init_type();
60 XFileDataObjectDouble::init_type();
61 XFileDataObjectInteger::init_type();
62 XFileDataObjectString::init_type();
63 XFileDataNode::init_type();
64 XFileDataNodeReference::init_type();
65 XFileDataNodeTemplate::init_type();
66 XFileNode::init_type();
67 XFileTemplate::init_type();
68}
init_libxfile
void init_libxfile()
Initializes the library.
Definition config_xfile.cxx:49
config_xfile.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataDef.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataNodeReference.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataNodeTemplate.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataObjectArray.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataObjectDouble.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataObjectInteger.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataObjectString.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileDataObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileNode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFileTemplate.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
xFile.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.