mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 05:40:26 +01:00
Fixes
This commit is contained in:
parent
8a0b6ee447
commit
a20637b3f4
@ -14,11 +14,15 @@ class CB3DJSONMeshFileLoader : public IMeshLoader
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
CB3DJSONMeshFileLoader();
|
CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool isALoadableFileExtension(const io::path& fileName) const override;
|
bool CB3DJSONMeshFileLoader::isALoadableFileExtension(
|
||||||
|
const io::path& fileName) const
|
||||||
IAnimatedMesh* createMesh(io::IReadFile* file) override;
|
{
|
||||||
|
return core::hasFileExtension(fileName, "b3djson");
|
||||||
|
}
|
||||||
|
|
||||||
};// class CB3DJSONMeshFileLoader
|
};// class CB3DJSONMeshFileLoader
|
||||||
} // namespace scene
|
} // namespace scene
|
||||||
|
24
source/Irrlicht/CB3DJSONMeshFileLoader.h
Normal file
24
source/Irrlicht/CB3DJSONMeshFileLoader.h
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user