Radium Engine  1.5.0
AssimpFileLoader.hpp
1 #pragma once
2 
3 #include <assimp/Importer.hpp>
4 
5 #include <Core/Asset/FileLoaderInterface.hpp>
6 #include <IO/RaIO.hpp>
7 
8 namespace Ra {
9 namespace IO {
10 
12 class RA_IO_API AssimpFileLoader : public Core::Asset::FileLoaderInterface
13 {
14  public:
16 
17  ~AssimpFileLoader() override;
18 
19  std::vector<std::string> getFileExtensions() const override;
20  bool handleFileExtension( const std::string& extension ) const override;
21  Core::Asset::FileData* loadFile( const std::string& filename ) override;
22  std::string name() const override;
23 
24  private:
25  Assimp::Importer m_importer;
26 };
27 
28 } // namespace IO
29 } // namespace Ra
This class loads scenes containing MESHES only (not point-clouds)
Definition: Cage.cpp:3