2020-07-05 18:22:31 +00:00
|
|
|
|
/*
|
2015-05-19 03:48:29 +00:00
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
Open Asset Import Library (assimp)
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
2022-01-10 20:13:43 +00:00
|
|
|
|
Copyright (c) 2006-2022, assimp team
|
2018-01-28 18:42:05 +00:00
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
All rights reserved.
|
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
|
with or without modification, are permitted provided that the following
|
2015-05-19 03:48:29 +00:00
|
|
|
|
conditions are met:
|
|
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
|
|
|
|
|
* Neither the name of the assimp team, nor the names of its
|
|
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
|
derived from this software without specific prior
|
|
|
|
|
written permission of the assimp team.
|
|
|
|
|
|
2015-05-19 03:52:10 +00:00
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
2015-05-19 03:52:10 +00:00
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
2015-05-19 03:52:10 +00:00
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
2015-05-19 03:48:29 +00:00
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
2015-05-19 03:52:10 +00:00
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
2015-05-19 03:48:29 +00:00
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/** @file ImporterRegistry.cpp
|
|
|
|
|
|
|
|
|
|
Central registry for all importers available. Do not edit this file
|
|
|
|
|
directly (unless you are adding new loaders), instead use the
|
|
|
|
|
corresponding preprocessor flag to selectively disable formats.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-10-09 17:02:52 +00:00
|
|
|
|
#include <assimp/anim.h>
|
2018-01-06 00:18:33 +00:00
|
|
|
|
#include <assimp/BaseImporter.h>
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include <vector>
|
2021-04-28 15:16:49 +00:00
|
|
|
|
#include <cstdlib>
|
2017-02-28 02:32:44 +00:00
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
// Importers
|
|
|
|
|
// (include_new_importers_here)
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/X/XFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AMF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/AMF/AMFImporter.hpp"
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3DS_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/3DS/3DSLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD3_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MD3/MD3Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDL_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MDL/MDLLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD2_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MD2/MD2Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Ply/PlyLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_ASE_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/ASE/ASELoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OBJ_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Obj/ObjFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_HMP_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/HMP/HMPLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_SMD_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/SMD/SMDLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MDC_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MDC/MDCLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MD5_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MD5/MD5Loader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_STL_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/STL/STLLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWO_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/LWO/LWOLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_DXF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/DXF/DXFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NFF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/NFF/NFFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_RAW_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Raw/RawLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_SIB_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/SIB/SIBImporter.h"
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OFF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/OFF/OFFLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AC_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/AC/ACLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/BVH/BVHLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRRMESH_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Irr/IRRMeshLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IRR_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Irr/IRRLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Q3D/Q3DLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_B3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/B3D/B3DImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Collada/ColladaLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_TERRAGEN_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Terragen/TerragenLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_CSM_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/CSM/CSMLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Unreal/UnrealLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_LWS_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/LWS/LWSLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OGRE_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Ogre/OgreImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_OPENGEX_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/OpenGEX/OpenGEXImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MS3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MS3D/MS3DLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_COB_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/COB/COBLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Blender/BlenderLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_Q3BSP_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Q3BSP/Q3BSPFileImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_NDO_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/NDO/NDOLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IFC_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/IFC/IFCLoader.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_XGL_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/XGL/XGLLoader.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_FBX_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/FBX/FBXImporter.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_ASSBIN_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/Assbin/AssbinLoader.h"
|
2015-05-19 03:52:10 +00:00
|
|
|
|
#endif
|
2020-07-05 18:22:31 +00:00
|
|
|
|
#if !defined(ASSIMP_BUILD_NO_GLTF_IMPORTER) && !defined(ASSIMP_BUILD_NO_GLTF1_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/glTF/glTFImporter.h"
|
2020-07-05 18:22:31 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if !defined(ASSIMP_BUILD_NO_GLTF_IMPORTER) && !defined(ASSIMP_BUILD_NO_GLTF2_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/glTF2/glTF2Importer.h"
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_C4D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/C4D/C4DImporter.h"
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_3MF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/3MF/D3MFImporter.h"
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#endif
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/X3D/X3DImporter.hpp"
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#endif
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MMD_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/MMD/MMDImporter.h"
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#endif
|
2019-10-29 13:14:00 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_M3D_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#include "AssetLib/M3D/M3DImporter.h"
|
2019-10-29 13:14:00 +00:00
|
|
|
|
#endif
|
2021-12-18 12:34:58 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IQM_IMPORTER
|
|
|
|
|
#include "AssetLib/IQM/IQMImporter.h"
|
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
|
|
|
|
|
namespace Assimp {
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2021-09-07 13:04:08 +00:00
|
|
|
|
void GetImporterInstanceList(std::vector<BaseImporter *> &out) {
|
|
|
|
|
|
2021-04-28 15:16:49 +00:00
|
|
|
|
// Some importers may be unimplemented or otherwise unsuitable for general use
|
|
|
|
|
// in their current state. Devs can set ASSIMP_ENABLE_DEV_IMPORTERS in their
|
|
|
|
|
// local environment to enable them, otherwise they're left out of the registry.
|
2023-03-31 23:02:21 +00:00
|
|
|
|
#if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
|
|
|
|
|
// not supported under uwp
|
2021-04-28 15:16:49 +00:00
|
|
|
|
const char *envStr = std::getenv("ASSIMP_ENABLE_DEV_IMPORTERS");
|
2023-03-31 23:02:21 +00:00
|
|
|
|
#else
|
|
|
|
|
const char *envStr = { "0" };
|
|
|
|
|
#endif
|
2021-04-28 15:16:49 +00:00
|
|
|
|
bool devImportersEnabled = envStr && strcmp(envStr, "0");
|
|
|
|
|
|
|
|
|
|
// Ensure no unused var warnings if all uses are #ifndef'd away below:
|
|
|
|
|
(void)devImportersEnabled;
|
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
// Add an instance of each worker class here
|
|
|
|
|
// (register_new_importers_here)
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
out.reserve(64);
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_X_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new XFileImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OBJ_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new ObjFileImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_AMF_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new AMFImporter());
|
2016-09-26 09:57:44 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new Discreet3DSImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2019-10-29 13:14:00 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_M3D_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new M3DImporter());
|
2019-10-29 13:14:00 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD3_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MD3Importer());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD2_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MD2Importer());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_PLY_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new PLYImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDL_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MDLImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_ASE_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3DS_IMPORTER)
|
|
|
|
|
out.push_back(new ASEImporter());
|
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_HMP_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new HMPImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_SMD_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new SMDImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MDC_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MDCImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MD5_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MD5Importer());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_STL_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new STLImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWO_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new LWOImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_DXF_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new DXFImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NFF_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new NFFImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_RAW_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new RAWImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_SIB_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new SIBImporter());
|
2015-12-14 06:14:19 +00:00
|
|
|
|
#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OFF_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new OFFImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_AC_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new AC3DImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BVH_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new BVHLoader());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRRMESH_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new IRRMeshImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IRR_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new IRRImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3D_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new Q3DImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_B3D_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new B3DImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COLLADA_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new ColladaLoader());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_TERRAGEN_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new TerragenImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_CSM_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new CSMImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3D_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new UnrealImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_LWS_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new LWSImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OGRE_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new Ogre::OgreImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_OPENGEX_IMPORTER)
|
|
|
|
|
out.push_back(new OpenGEX::OpenGEXImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_MS3D_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MS3DImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_COB_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new COBImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_BLEND_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new BlenderImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_Q3BSP_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new Q3BSPFileImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_NDO_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new NDOImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_IFC_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new IFCImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_XGL_IMPORTER)
|
|
|
|
|
out.push_back(new XGLImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_FBX_IMPORTER)
|
|
|
|
|
out.push_back(new FBXImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_ASSBIN_IMPORTER)
|
|
|
|
|
out.push_back(new AssbinImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-07-05 18:22:31 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_GLTF_IMPORTER && !defined ASSIMP_BUILD_NO_GLTF1_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new glTFImporter());
|
2020-07-05 18:22:31 +00:00
|
|
|
|
#endif
|
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_GLTF_IMPORTER && !defined ASSIMP_BUILD_NO_GLTF2_IMPORTER)
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new glTF2Importer());
|
2015-11-26 19:49:00 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_C4D_IMPORTER)
|
|
|
|
|
out.push_back(new C4DImporter());
|
2015-05-19 03:48:29 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
#if (!defined ASSIMP_BUILD_NO_3MF_IMPORTER)
|
|
|
|
|
out.push_back(new D3MFImporter());
|
2016-05-07 12:16:33 +00:00
|
|
|
|
#endif
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_X3D_IMPORTER
|
2021-09-12 09:37:33 +00:00
|
|
|
|
out.push_back(new X3DImporter());
|
2016-09-29 15:50:24 +00:00
|
|
|
|
#endif
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#ifndef ASSIMP_BUILD_NO_MMD_IMPORTER
|
2020-05-02 13:14:38 +00:00
|
|
|
|
out.push_back(new MMDImporter());
|
2021-12-18 12:34:58 +00:00
|
|
|
|
#endif
|
|
|
|
|
#ifndef ASSIMP_BUILD_NO_IQM_IMPORTER
|
|
|
|
|
out.push_back(new IQMImporter());
|
2017-02-24 00:35:15 +00:00
|
|
|
|
#endif
|
2020-05-02 13:14:38 +00:00
|
|
|
|
//#ifndef ASSIMP_BUILD_NO_STEP_IMPORTER
|
2023-03-31 23:02:21 +00:00
|
|
|
|
// out.push_back(new StepFile::StepFileImporter());
|
2020-05-02 13:14:38 +00:00
|
|
|
|
//#endif
|
2015-05-19 03:48:29 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-01-16 14:02:45 +00:00
|
|
|
|
/** will delete all registered importers. */
|
2020-05-02 13:14:38 +00:00
|
|
|
|
void DeleteImporterInstanceList(std::vector<BaseImporter *> &deleteList) {
|
|
|
|
|
for (size_t i = 0; i < deleteList.size(); ++i) {
|
|
|
|
|
delete deleteList[i];
|
|
|
|
|
deleteList[i] = nullptr;
|
|
|
|
|
} //for
|
2016-01-16 14:02:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
2015-05-19 03:48:29 +00:00
|
|
|
|
} // namespace Assimp
|