2
Open Asset Import Library (ASSIMP)
3
----------------------------------------------------------------------
5
Copyright (c) 2006-2010, ASSIMP Development Team
8
Redistribution and use of this software in source and binary forms,
9
with or without modification, are permitted provided that the
10
following conditions are met:
12
* Redistributions of source code must retain the above
13
copyright notice, this list of conditions and the
16
* Redistributions in binary form must reproduce the above
17
copyright notice, this list of conditions and the
18
following disclaimer in the documentation and/or other
19
materials provided with the distribution.
21
* Neither the name of the ASSIMP team, nor the names of its
22
contributors may be used to endorse or promote products
23
derived from this software without specific prior
24
written permission of the ASSIMP Development Team.
26
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
----------------------------------------------------------------------
41
/** @file IRRMeshLoader.h
42
* @brief Declaration of the .irrMesh (Irrlight Engine Mesh Format)
45
#ifndef AI_IRRMESHLOADER_H_INCLUDED
46
#define AI_IRRMESHLOADER_H_INCLUDED
48
#include "BaseImporter.h"
49
#include "IRRShared.h"
53
// ---------------------------------------------------------------------------
54
/** IrrMesh importer class.
56
* IrrMesh is the native file format of the Irrlight engine and its editor
57
* irrEdit. As IrrEdit itself is capable of importing quite many file formats,
58
* it might be a good file format for data exchange.
60
class IRRMeshImporter : public BaseImporter, public IrrlichtBase
62
friend class Importer;
65
/** Constructor to be privately used by Importer */
68
/** Destructor, private as well */
73
// -------------------------------------------------------------------
74
/** Returns whether the class can handle the format of the given file.
75
* See BaseImporter::CanRead() for details.
77
bool CanRead( const std::string& pFile, IOSystem* pIOHandler,
82
// -------------------------------------------------------------------
83
/** Called by Importer::GetExtensionList() for each loaded importer.
84
* See BaseImporter::GetExtensionList() for details
86
void GetExtensionList(std::set<std::string>& extensions);
88
// -------------------------------------------------------------------
89
/** Imports the given file into the given scene structure.
90
* See BaseImporter::InternReadFile() for details
92
void InternReadFile( const std::string& pFile, aiScene* pScene,
93
IOSystem* pIOHandler);
97
} // end of namespace Assimp
99
#endif // AI_IRRMESHIMPORTER_H_INC