diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 07132537..88fcb280 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -14,11 +14,15 @@ class CB3DJSONMeshFileLoader : public IMeshLoader { public: - CB3DJSONMeshFileLoader(); +CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader() +{ +} - bool isALoadableFileExtension(const io::path& fileName) const override; - - IAnimatedMesh* createMesh(io::IReadFile* file) override; +bool CB3DJSONMeshFileLoader::isALoadableFileExtension( + const io::path& fileName) const +{ + return core::hasFileExtension(fileName, "b3djson"); +} };// class CB3DJSONMeshFileLoader } // namespace scene diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.h b/source/Irrlicht/CB3DJSONMeshFileLoader.h new file mode 100644 index 00000000..7e8269b9 --- /dev/null +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.h @@ -0,0 +1,24 @@ +#include "IAnimatedMesh.h" +#include "IMeshLoader.h" +#include "IReadFile.h" +#include "path.h" + +namespace irr +{ + +namespace scene +{ + +class CB3DJSONMeshFileLoader : public IMeshLoader +{ +public: + + CB3DJSONMeshFileLoader(); + + bool isALoadableFileExtension(const io::path& fileName) const override; + + IAnimatedMesh* createMesh(io::IReadFile* file) override; + +};// class CB3DJSONMeshFileLoader +} // namespace scene +} // namespace irr \ No newline at end of file