00001 // Filename: config_lwo.cxx 00002 // Created by: drose (23Apr01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "config_lwo.h" 00020 #include "iffChunk.h" 00021 #include "iffGenericChunk.h" 00022 #include "iffInputFile.h" 00023 #include "lwoBoundingBox.h" 00024 #include "lwoChunk.h" 00025 #include "lwoClip.h" 00026 #include "lwoDiscontinuousVertexMap.h" 00027 #include "lwoGroupChunk.h" 00028 #include "lwoHeader.h" 00029 #include "lwoInputFile.h" 00030 #include "lwoLayer.h" 00031 #include "lwoPoints.h" 00032 #include "lwoPolygons.h" 00033 #include "lwoPolygonTags.h" 00034 #include "lwoStillImage.h" 00035 #include "lwoSurface.h" 00036 #include "lwoSurfaceBlock.h" 00037 #include "lwoSurfaceBlockAxis.h" 00038 #include "lwoSurfaceBlockChannel.h" 00039 #include "lwoSurfaceBlockCoordSys.h" 00040 #include "lwoSurfaceBlockEnabled.h" 00041 #include "lwoSurfaceBlockImage.h" 00042 #include "lwoSurfaceBlockOpacity.h" 00043 #include "lwoSurfaceBlockProjection.h" 00044 #include "lwoSurfaceBlockHeader.h" 00045 #include "lwoSurfaceBlockRefObj.h" 00046 #include "lwoSurfaceBlockRepeat.h" 00047 #include "lwoSurfaceBlockTMap.h" 00048 #include "lwoSurfaceBlockTransform.h" 00049 #include "lwoSurfaceBlockVMapName.h" 00050 #include "lwoSurfaceBlockWrap.h" 00051 #include "lwoSurfaceColor.h" 00052 #include "lwoSurfaceParameter.h" 00053 #include "lwoSurfaceSidedness.h" 00054 #include "lwoSurfaceSmoothingAngle.h" 00055 #include "lwoTags.h" 00056 #include "lwoVertexMap.h" 00057 00058 #include <dconfig.h> 00059 00060 Configure(config_lwo); 00061 00062 ConfigureFn(config_lwo) { 00063 init_liblwo(); 00064 } 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: init_liblwo 00068 // Description: Initializes the library. This must be called at 00069 // least once before any of the functions or classes in 00070 // this library can be used. Normally it will be 00071 // called by the static initializers and need not be 00072 // called explicitly, but special cases exist. 00073 //////////////////////////////////////////////////////////////////// 00074 void 00075 init_liblwo() { 00076 static bool initialized = false; 00077 if (initialized) { 00078 return; 00079 } 00080 initialized = true; 00081 00082 IffChunk::init_type(); 00083 IffGenericChunk::init_type(); 00084 IffInputFile::init_type(); 00085 LwoBoundingBox::init_type(); 00086 LwoChunk::init_type(); 00087 LwoClip::init_type(); 00088 LwoDiscontinuousVertexMap::init_type(); 00089 LwoGroupChunk::init_type(); 00090 LwoHeader::init_type(); 00091 LwoInputFile::init_type(); 00092 LwoLayer::init_type(); 00093 LwoPoints::init_type(); 00094 LwoPolygons::init_type(); 00095 LwoPolygonTags::init_type(); 00096 LwoTags::init_type(); 00097 LwoStillImage::init_type(); 00098 LwoSurface::init_type(); 00099 LwoSurfaceBlock::init_type(); 00100 LwoSurfaceBlockAxis::init_type(); 00101 LwoSurfaceBlockChannel::init_type(); 00102 LwoSurfaceBlockCoordSys::init_type(); 00103 LwoSurfaceBlockEnabled::init_type(); 00104 LwoSurfaceBlockImage::init_type(); 00105 LwoSurfaceBlockOpacity::init_type(); 00106 LwoSurfaceBlockProjection::init_type(); 00107 LwoSurfaceBlockHeader::init_type(); 00108 LwoSurfaceBlockRefObj::init_type(); 00109 LwoSurfaceBlockRepeat::init_type(); 00110 LwoSurfaceBlockTMap::init_type(); 00111 LwoSurfaceBlockTransform::init_type(); 00112 LwoSurfaceBlockVMapName::init_type(); 00113 LwoSurfaceBlockWrap::init_type(); 00114 LwoSurfaceColor::init_type(); 00115 LwoSurfaceParameter::init_type(); 00116 LwoSurfaceSidedness::init_type(); 00117 LwoSurfaceSmoothingAngle::init_type(); 00118 LwoVertexMap::init_type(); 00119 } 00120