2022-10-22 23:36:29 +02:00
|
|
|
#ifndef __C_GLTF_MESH_FILE_LOADER_INCLUDED__
|
|
|
|
#define __C_GLTF_MESH_FILE_LOADER_INCLUDED__
|
|
|
|
|
|
|
|
#include "IAnimatedMesh.h"
|
|
|
|
#include "IMeshLoader.h"
|
|
|
|
#include "IReadFile.h"
|
|
|
|
#include "path.h"
|
|
|
|
|
2022-11-06 14:55:09 +01:00
|
|
|
#include <tiny_gltf.h>
|
|
|
|
|
2022-10-22 23:36:29 +02:00
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace scene
|
|
|
|
{
|
|
|
|
|
|
|
|
class CGLTFMeshFileLoader : public IMeshLoader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CGLTFMeshFileLoader();
|
|
|
|
|
|
|
|
bool isALoadableFileExtension(const io::path& filename) const override;
|
|
|
|
|
|
|
|
IAnimatedMesh* createMesh(io::IReadFile* file) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace scene
|
|
|
|
|
|
|
|
} // namespace irr
|
|
|
|
|
|
|
|
#endif // __C_GLTF_MESH_FILE_LOADER_INCLUDED__
|
|
|
|
|