Panda3D
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"
36 #include "fltUnsupportedRecord.h"
37 #include "fltTransformRecord.h"
39 #include "fltTransformPut.h"
42 #include "fltTransformScale.h"
43 #include "fltTransformTranslate.h"
45 #include "fltExternalReference.h"
46 
47 #include "dconfig.h"
48 
49 Configure(config_flt);
50 NotifyCategoryDef(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 
63 ConfigureFn(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
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 }
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.
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.
void init_libflt()
Initializes the library.
Definition: config_flt.cxx:74
This is a convenience class to specialize ConfigVariable as a boolean type.
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.
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.
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.
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.
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.