2023-11-28 10:46:25 +01:00
|
|
|
#pragma once
|
|
|
|
|
2023-11-26 08:03:32 +01:00
|
|
|
#include "IAnimatedMesh.h"
|
|
|
|
#include "IMeshLoader.h"
|
2023-11-28 10:46:25 +01:00
|
|
|
#include "CSkinnedMesh.h"
|
2023-11-26 08:03:32 +01:00
|
|
|
#include "IReadFile.h"
|
|
|
|
#include "path.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace scene
|
|
|
|
{
|
|
|
|
|
|
|
|
class CB3DJSONMeshFileLoader : public IMeshLoader
|
|
|
|
{
|
2023-11-28 10:46:25 +01:00
|
|
|
private:
|
2023-11-28 11:02:31 +01:00
|
|
|
// Fields.
|
2023-11-28 10:46:25 +01:00
|
|
|
CSkinnedMesh* AnimatedMesh;
|
2023-11-28 11:02:31 +01:00
|
|
|
|
|
|
|
// Methods.
|
2023-11-28 10:55:39 +01:00
|
|
|
void cleanUp(std::string);
|
2023-11-28 11:02:31 +01:00
|
|
|
bool parseJSONFile();
|
2023-11-28 10:46:25 +01:00
|
|
|
|
2023-11-26 08:03:32 +01:00
|
|
|
public:
|
|
|
|
|
|
|
|
CB3DJSONMeshFileLoader();
|
|
|
|
|
|
|
|
bool isALoadableFileExtension(const io::path& fileName) const override;
|
|
|
|
|
|
|
|
IAnimatedMesh* createMesh(io::IReadFile* file) override;
|
|
|
|
|
|
|
|
};// class CB3DJSONMeshFileLoader
|
|
|
|
} // namespace scene
|
|
|
|
} // namespace irr
|