Panda3D

Loading...
Searching...
No Matches
config_flt.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_flt.cxx
10 * @author drose
11 * @date 2000-08-24
12 */
13
14#include "config_flt.h"
15#include "fltRecord.h"
16#include "fltBead.h"
17#include "fltBeadID.h"
18#include "fltGroup.h"
19#include "fltObject.h"
20#include "fltGeometry.h"
21#include "fltFace.h"
22#include "fltCurve.h"
23#include "fltMesh.h"
24#include "fltLocalVertexPool.h"
25#include "fltMeshPrimitive.h"
26#include "fltVectorRecord.h"
27#include "fltVertexList.h"
28#include "fltLOD.h"
29#include "fltInstanceDefinition.h"
30#include "fltInstanceRef.h"
31#include "fltHeader.h"
32#include "fltVertex.h"
33#include "fltMaterial.h"
34#include "fltTexture.h"
35#include "fltLightSourceDefinition.h"
36#include "fltUnsupportedRecord.h"
37#include "fltTransformRecord.h"
38#include "fltTransformGeneralMatrix.h"
39#include "fltTransformPut.h"
40#include "fltTransformRotateAboutEdge.h"
41#include "fltTransformRotateAboutPoint.h"
42#include "fltTransformScale.h"
43#include "fltTransformTranslate.h"
44#include "fltTransformRotateScale.h"
45#include "fltExternalReference.h"
46
47#include "dconfig.h"
48
49Configure(config_flt);
50NotifyCategoryDef(flt, "");
51
52
53 ConfigVariableBool flt_error_abort
54("flt-error-abort", false,
55 PRC_DESC("Set this true to trigger an assertion failure (and core dump) "
56 "immediately when an error is detected on reading or writing a flt "
57 "file. This is primarily useful for debugging the flt reader itself, "
58 "to generate a stack trace to determine precisely at what point a flt "
59
60 "file failed."));
61
62
63ConfigureFn(config_flt) {
64 init_libflt();
65}
66
67/**
68 * Initializes the library. This must be called at least once before any of
69 * the functions or classes in this library can be used. Normally it will be
70 * called by the static initializers and need not be called explicitly, but
71 * special cases exist.
72 */
73 void
74 init_libflt() {
75 static bool initialized = false;
76 if (initialized) {
77 return;
78 }
79 initialized = true;
80
81 FltRecord::init_type();
82 FltBead::init_type();
83 FltBeadID::init_type();
84 FltGroup::init_type();
85 FltObject::init_type();
86 FltGeometry::init_type();
87 FltFace::init_type();
88 FltCurve::init_type();
89 FltMesh::init_type();
90 FltLocalVertexPool::init_type();
91 FltMeshPrimitive::init_type();
92 FltVectorRecord::init_type();
93 FltVertexList::init_type();
94 FltLOD::init_type();
95 FltInstanceDefinition::init_type();
96 FltInstanceRef::init_type();
97 FltHeader::init_type();
98 FltVertex::init_type();
99 FltMaterial::init_type();
100 FltTexture::init_type();
101 FltLightSourceDefinition::init_type();
102 FltUnsupportedRecord::init_type();
103 FltTransformRecord::init_type();
104 FltTransformGeneralMatrix::init_type();
105 FltTransformPut::init_type();
106 FltTransformRotateAboutEdge::init_type();
107 FltTransformRotateAboutPoint::init_type();
108 FltTransformScale::init_type();
109 FltTransformTranslate::init_type();
110 FltTransformRotateScale::init_type();
111 FltExternalReference::init_type();
112}
ConfigVariableBool
This is a convenience class to specialize ConfigVariable as a boolean type.
Definition configVariableBool.h:23
init_libflt
void init_libflt()
Initializes the library.
Definition config_flt.cxx:74
config_flt.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
dconfig.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltBeadID.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltBead.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltCurve.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltExternalReference.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltFace.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltGeometry.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltGroup.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltHeader.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltInstanceDefinition.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltInstanceRef.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltLOD.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltLightSourceDefinition.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltLocalVertexPool.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltMaterial.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltMeshPrimitive.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltMesh.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltRecord.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTexture.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformGeneralMatrix.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformPut.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformRecord.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformRotateAboutEdge.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformRotateAboutPoint.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformRotateScale.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformScale.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltTransformTranslate.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltUnsupportedRecord.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltVectorRecord.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltVertexList.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltVertex.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.