Panda3D

config_xfile.cxx

00001 // Filename: config_xfile.cxx
00002 // Created by:  drose (24Aug00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_xfile.h"
00016 #include "xFile.h"
00017 #include "xFileDataDef.h"
00018 #include "xFileDataObject.h"
00019 #include "xFileDataObjectArray.h"
00020 #include "xFileDataObjectDouble.h"
00021 #include "xFileDataObjectInteger.h"
00022 #include "xFileDataObjectString.h"
00023 #include "xFileDataNode.h"
00024 #include "xFileDataNodeReference.h"
00025 #include "xFileDataNodeTemplate.h"
00026 #include "xFileNode.h"
00027 #include "xFileTemplate.h"
00028 
00029 #include "dconfig.h"
00030 
00031 Configure(config_xfile);
00032 NotifyCategoryDef(xfile, "");
00033 
00034 // This is set true, typically by the user's command-line options, to
00035 // indicate that when a X file is generated it should include all
00036 // geometry in one big mesh, instead of preserving the hierarchy
00037 // from the source egg file.
00038 bool xfile_one_mesh = false;
00039 
00040 ConfigureFn(config_xfile) {
00041   init_libxfile();
00042 }
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //     Function: init_libxfile
00046 //  Description: Initializes the library.  This must be called at
00047 //               least once before any of the functions or classes in
00048 //               this library can be used.  Normally it will be
00049 //               called by the static initializers and need not be
00050 //               called explicitly, but special cases exist.
00051 ////////////////////////////////////////////////////////////////////
00052 void
00053 init_libxfile() {
00054   static bool initialized = false;
00055   if (initialized) {
00056     return;
00057   }
00058   initialized = true;
00059 
00060   XFile::init_type();
00061   XFileDataDef::init_type();
00062   XFileDataObject::init_type();
00063   XFileDataObjectArray::init_type();
00064   XFileDataObjectDouble::init_type();
00065   XFileDataObjectInteger::init_type();
00066   XFileDataObjectString::init_type();
00067   XFileDataNode::init_type();
00068   XFileDataNodeReference::init_type();
00069   XFileDataNodeTemplate::init_type();
00070   XFileNode::init_type();
00071   XFileTemplate::init_type();
00072 }
00073 
 All Classes Functions Variables Enumerations