mirror of
https://github.com/minetest/irrlicht.git
synced 2024-09-27 23:10:25 +02:00
It works!
This commit is contained in:
parent
9f39338793
commit
a3f07d10b7
|
@ -1,5 +1,6 @@
|
||||||
|
#include "CB3DJSONMeshFileLoader.h"
|
||||||
|
#include "coreutil.h"
|
||||||
#include "IAnimatedMesh.h"
|
#include "IAnimatedMesh.h"
|
||||||
#include "IMeshLoader.h"
|
|
||||||
#include "IReadFile.h"
|
#include "IReadFile.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
#include "json/json.hpp"
|
#include "json/json.hpp"
|
||||||
|
@ -10,20 +11,23 @@ namespace irr
|
||||||
namespace scene
|
namespace scene
|
||||||
{
|
{
|
||||||
|
|
||||||
class CB3DJSONMeshFileLoader : public IMeshLoader
|
// Class methods.
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader()
|
CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CB3DJSONMeshFileLoader::isALoadableFileExtension(
|
bool CB3DJSONMeshFileLoader::isALoadableFileExtension(
|
||||||
const io::path& fileName) const
|
const io::path& fileName) const
|
||||||
{
|
{
|
||||||
|
//* we could do multiple accepted extensions, like b3dj jb3d, j3d, etc. Talk with core devs about this.
|
||||||
return core::hasFileExtension(fileName, "b3djson");
|
return core::hasFileExtension(fileName, "b3djson");
|
||||||
}
|
}
|
||||||
|
|
||||||
};// class CB3DJSONMeshFileLoader
|
IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) {
|
||||||
|
//! I'm sure this isn't a horrible idea!
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace scene
|
} // namespace scene
|
||||||
} // namespace irr
|
} // namespace irr
|
Loading…
Reference in New Issue
Block a user