1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#include "IrrCompileConfig.h"
6
#ifdef _IRR_COMPILE_WITH_MD3_LOADER_
8
#include "CMD3MeshFileLoader.h"
9
#include "CAnimatedMeshMD3.h"
10
#include "irrString.h"
18
CMD3MeshFileLoader::CMD3MeshFileLoader( scene::ISceneManager* smgr)
25
CMD3MeshFileLoader::~CMD3MeshFileLoader()
30
//! returns true if the file maybe is able to be loaded by this class
31
//! based on the file extension (e.g. ".bsp")
32
bool CMD3MeshFileLoader::isALoadableFileExtension(const io::path& filename) const
34
return core::hasFileExtension ( filename, "md3" );
38
IAnimatedMesh* CMD3MeshFileLoader::createMesh(io::IReadFile* file)
40
CAnimatedMeshMD3 * mesh = new CAnimatedMeshMD3();
42
if ( mesh->loadModelFile ( 0, file, SceneManager->getFileSystem(), SceneManager->getVideoDriver() ) )
50
} // end namespace scene
51
} // end namespace irr
53
#endif // _IRR_COMPILE_WITH_MD3_LOADER_